Exactly this user-Name is what I need within my implementation of IAuthorizationServerHost.CreateAccessToken, which is also called by DNOA after that. I need it, because, I want to set extra-data this user.
What is the supposed way, to have access to the user-Name from within this method?
Shell I set the CurrentPrincipal within TryAuthorizeResourceOwnerCredentialGrant or shell I just put the user-name into a member-variable?
Hi Andrew,thanks for your reply. The extra-data is for the ressource-server. For instance, the token could get the scope http://whatever/movies and the extra-data-entry: age=14. This could tell the ressource-server to just display a specific sub-set of the movies.
>> Alternatively, the not-recommmended way to do this with OAuth 2 (ala Facebook) is to return the>> username that authorized the access token from the resource server [...]Google uses this solution too and it seems, that this solution is pretty close to the current proposal of OpenId Connect.Does that mean, that OpenId Connect shows, how to mis-use OAuth2 for Authorization the right way?
Hi Andrew,
>> Perfect. Then yes, setting ExtraData in the access token is the right way to go.
thanks. But that leads to the original question – How to get access to the user-name within CreateAccessToken?
Wishes,
Fred
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
I also require access to the username in the CreateAccessToken method however I can't find an open ticket - can someone please advise what the current status of this is?
thanks
For more options, visit this group at
--You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/lqUV2XN_TOcJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/IrXOQv_ZDcgJ.