google-openidconnect

UseOpenIdConnectAuthentication - Unable to unprotect the message.State Error Message

家住魔仙堡 提交于 2020-01-24 20:43:30
问题 I am trying to add Google and Azure Active Directory authorities as OpenIdConnect options in my application. If i add each of them separately, it works fine. But if i add them both i get the following error message: Unable to unprotect the message.State These are the OpenIdConnectOptions configuration: //Google appBuilder.UseOpenIdConnectAuthentication(new OpenIdConnectOptions { ClientId = ".....apps.googleusercontent.com", Authority = $"https://accounts.google.com", ClientSecret =

How to Generate AccessToken for user who is logged in with External Providers

↘锁芯ラ 提交于 2019-12-12 06:11:43
问题 I have an API implemented by asp.net core. I've used OpenIddict to generate access token and refresh token for users who registered to my api by email and password. I've added Google middleware (.UseGoogleAuthentication ... ) to my API and I can successfully log in user with Google. My client is UWP and I use WebAuthenticationBroker to get redirected to google after sending a reuest to localhost/Account/ExternalLogin/Google. when the users is logged In with google he is redirected to Account

Open ID connect for native applications, i need get a valid ID token without prompting the user after the initial authorization?

拟墨画扇 提交于 2019-12-11 10:45:05
问题 I'm using the system browser for authentication. Identity Provider - Google Steps 1 - user gets authorized by entering user name and password. I get the authentication_code at this point. 2 - I call the token end point and get access token, id token and refresh token. When the ID token expires, I need to get a new valid ID token. I need to do this without prompting the user to enter a his credentials. Question - Is it possible to get a new id token without prompting the user? Refresh token