You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
I'm using Twitter authentication along with cookie authentication and i'm getting null when the application returns to my ExternalLoginCallback action and asks the SignInManager for the login info. I've registered a callback in the twitter middleware for when the ticket is being created and I've confirmed that I've received an access token from twitter. I've also watched the chatter on fiddler and it looks normal:
Authentication request application side
Application creates a challenge result and redirects the user to the twitter oauth endpoint for authorization.
User authorizes application, twitter returns to the default URL my application provided: /signin-twitter
The application asks for an access token and receives it.
The twitter middleware creates an authentication ticket and redirects to my ExternalLoginCallback action.
Info is null.
Is the cookie not being updated by the twitter middleware...?
I'm kind of at a loss for where to take this. This is a new application templated by VS 2015 update 1. My runtime is 1.0.0-rc1-update1 but all packages are *-rc1-final.
The text was updated successfully, but these errors were encountered:
I've continued reviewing the src and found that when I add the Twitter authentication middleware, I can set the SignInScheme via the options callback to
Which is the default string used in the IdentityCookieOptions class for the external cookie authentication scheme.
This configuration works as well (I removed the options callback when adding Identity to my service collection). I'm still unsure of the best practice.
The UseIdentity call is registering two cookie middlewares, one for the ApplicationCookie and one for the ExternalApplicationCookie. These are set to different authentication schemes by default. It should just work if you remove all of these explicit authentication scheme settings and rely on the default values... In general you shouldn't have to change these, but they are mutable since you are free to change them, as long as you set them all to the same values wherever they are used, if you miss setting one, the external login info will be null...
I'm using Twitter authentication along with cookie authentication and i'm getting null when the application returns to my ExternalLoginCallback action and asks the SignInManager for the login info. I've registered a callback in the twitter middleware for when the ticket is being created and I've confirmed that I've received an access token from twitter. I've also watched the chatter on fiddler and it looks normal:
Is the cookie not being updated by the twitter middleware...?
I'm kind of at a loss for where to take this. This is a new application templated by VS 2015 update 1. My runtime is 1.0.0-rc1-update1 but all packages are *-rc1-final.
The text was updated successfully, but these errors were encountered: