-
Notifications
You must be signed in to change notification settings - Fork 597
Provide AuthenticationProperties from state in OnRemoteFailure #1188
Comments
I am trying authentication with google as external provider but it is not asking for permissions and directly logging me in. Do you know if there are any changes in that process ? |
@Tratcher , how can i get return url from there ? I am using this code : twitterOptions.Events = new TwitterEvents() Can you please provide me insight into this. ? |
Twitter is special as it's still using OAuth1a. The AuthProperties aren't serialized into the url, they're only stored in the cookie. Security/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs Lines 134 to 152 in cccfbb7
You get them back like this: Security/src/Microsoft.AspNetCore.Authentication.Twitter/TwitterHandler.cs Lines 42 to 51 in cccfbb7
|
Thanks Anything that you have got to know ? |
The consent screen is only show the first time you use/approve an app. To see it again you have to revoke the app's privileges from your account. There is also a |
Was that for a success or failure? The cookie gets deleted if you succeed. |
It was a success |
For google authentication and consent screen, i have been using it like
But i do not find any property prompt to specify for the consent . Are you referring to somewhere else for consent screen ? |
As a side note -- I was working on something related to this today and I'm noticing when errors come back from the OP that neither the nonce or correlation cookies are being cleaned up. I don't know if this has been raised as an issue anywhere else, but I'd think it's something that should be addressed and perhaps in this issue. In fact, looking at the code, it seems that the expectation is that the nonce cookie key is related to the nonce itself -- this is a problem in an error scenario, as you don't get back an id_token (and thus no nonce). This means there's no way to positively identity which nonce cookie belongs to this error response. If I'm following the code correctly, it seems like that's a design flaw, and might want to be corrected. |
DuendeArchive/IdentityServer4#1087 (comment)
When an remote login error occurs you may need to examine the state that flows with that challenge to understand how to handle it. For error scenarios we don't currently deserialize the state for you, and doing it yourself is pretty awkward.
The text was updated successfully, but these errors were encountered: