IdentityModel/IdentityModel.OidcClient.Samples

SSO using Embedded Browser

dschwartzni opened this issue · 3 comments

I set up an application using your WinForm Sample. The OIDC successfully shows the login form, does MFA, and I get back the tokens.

However, if I close the application and open it again, I have to authenticate again. Usually, the SSO session in the browser allows me to bypass this step.

How can I configure my application to use the SystemBrowser or another browser that will maintain those SSO cookies between executions and/or for different applications that use this component.

Thanks in advance.

When using an embedded browser, you do not get SSO. You need to spawn the system browser for that.

See here e.g.
https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/tree/main/WindowsConsoleSystemBrowser

That is helpful. I didn't see the example of using the System Browser.

Is there a way to use the System Browser but have it displayed in a dialog box (like the Embedded Browser). That provides a nicer user experience.

No. sorry ;)