IdentityModel / IdentityModel.OidcClient.Samples

Apache License 2.0
295 stars 164 forks source link

How to store credentials in browser after authentication? #88

Open peter-raehse opened 3 years ago

peter-raehse commented 3 years ago

@leastprivilege It's not an issue with the sample but I can't find any documentation for my question, so I post it here:

Many apps with authentication via browser and then redirecting back to the app offer the user to store the credentials in the device key chain. When authenticating next time, the browser offers to use stored credentials.

I'm implementing authentication according to this Xamarin.Forms sample. The redirect into the app immediately takes place after authentication. Before redirecting the browser seems to ask the user to store credentials, but redirect overrides this and closes browser immediately.

Is there a solution that user can agree to store credentials in his browser / keychain? Thanks a lot!

leastprivilege commented 3 years ago

If that is something a browser would do, then this is outside of this library...sorry don't know..

peter-raehse commented 3 years ago

Thanks a lot for replying. I thought there could be a way to configure the Oidc client that it opens the browser in a way that the user can store credentials before being redirected to app.

leastprivilege commented 3 years ago

No - we don't have control over this.