-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some session data (maybe cookies) are not persisted in the same way as Edge/Chrome. #1167
Comments
Hey @darbid - we are looking at adding Certificate support in #3 and some Auth support in #120 that I believe would solve your scenario. Can you take a quick look at those issues and see if they would work for you? We are currently working on both of them. If you think your scenario is different I can reopen this issue. |
First I am sorry for my terminology, I am sure it is incorrect and confusing. #120 is not likely to assist. In fact the whole idea of the above process is to not have username and passwords. My comment there is probably misplaced. #3 will be an exciting update that as you can see I have a strong/unique opinion on. It would be related to the first time you log in to the target site but when you return I am unaware of any events the next time around. I can add that CefSharp and a standard CEF Client handle this out of the box. Some positive feedback (which also my help you to understand what I am trying to explain) I think the process is called MyID. It is different to Azure authentication which we do also use for things like O365. |
Thanks for the added info @darbid! I've reactivated this, and will add this bug to our backlog to take a look. It's possibly related to how we handle profiles in WebView2 as opposed to the browser. |
@champnic It looks like I will have to apologize for opening this one. I am sorry. As I set out above the cookies I was looking at included session cookies. It appears in a Chrome/Edge browser, session cookies are saved if you use the setting - Settings > On Startup > Continue where you left off, however if this setting is not used then session cookies are not saved. It therefore looks like we all need to save and then add session cookies to save a user from needing to login to a targeted site in a hybrid Webview2 app. I will close this issue, however you have linked #1325 to this issue so you may want to open it up for tracking purposes. |
Description
On a website which requires login through redirection to an authentication server (smart card / pin / certificate) in Google Chrome and Edge Chromium session cookies and/or other data is saved so that a user can close the browser fully and then on restart can navigate to the website without the requirement to login again. With webview2 a login and redirection to the authentication server always happens and a user must always provide a (smart card / pin / certificate).
Version
SDK: 1.0.824 prerelease
Runtime: 91.0.845.2
Framework: WPF
OS: Win10
Repro Steps
Sorry but my target website is intranet only.
Expected Behavior Based on Edge Chromium / Google Chrome
WebView2
On every new start of the application or of WebView2 after calling Dispose(), a user is redirected to the authentication server.
Additional context
AB#32538228
The text was updated successfully, but these errors were encountered: