C
C#7mo ago
GuyInGrey

Open browser tab with session data

Hello. I'm currently opening a browser tab with a url via Process.Start(url). This works. However, I want that tab to have specified session data, specifically so it opens pre-authenticated for the given site. Is this possible? If it helps narrow it down, I'm working with Chrome specifically. Thank you
4 Replies
ACiDCA7
ACiDCA77mo ago
where does the authentication come from? does the user log in inside your app or in the browser?
GuyInGrey
GuyInGreyOP7mo ago
The app already authenticates with the site with user-given credentials, I just want to reduce repetition, not requiring the user to authenticate twice. All I'd need to do is set one key in the session storage with the auth token. Given I have control over the site, I could just pass the auth token as a fragment, so the js would read that and set session storage, but I feel like opening the url with the auth token would be insecure. Am I incorrect in that assumption?
ACiDCA7
ACiDCA77mo ago
tempering with sessiondata/cookies is tbh also shady af..xD but if i recall correctly chrome saves all his stuff in appdata in sqlite files somewhere alternatives would be creating a chrome extension that talks with your app btw is that some company internal stuff? if yes and the credentials is the domain user you could force the user to use the domainuser to login in chrome and manage it through there not an IT guy but my company does somethin in that direction
GuyInGrey
GuyInGreyOP7mo ago
Yeah it's internal company stuff, but it's not a domain user. I don't like the idea of messing with session data if that's what it takes. I think I'll just try the url fragment route Thank you! Well, that's done. Easier to implement than I thought it'd be. I'll close this now. Thanks again!
Want results from more Discord servers?
Add your server