diff options
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs')
-rw-r--r-- | projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs b/projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs index d9c04bd..79a0b7e 100644 --- a/projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs +++ b/projecttemplates/WebFormsRelyingParty/Code/OAuthTokenManager.cs @@ -71,6 +71,10 @@ namespace WebFormsRelyingParty.Code { Token = response.Token, TokenSecret = response.TokenSecret, }; + string scope; + if (request.ExtraData.TryGetValue("scope", out scope)) { + token.Scope = scope; + } Global.DataContext.AddToIssuedToken(token); Global.DataContext.SaveChanges(); } @@ -108,6 +112,7 @@ namespace WebFormsRelyingParty.Code { ExpirationDate = null, // currently, our access tokens don't expire CreatedOn = DateTime.Now, User = requestTokenEntity.User, + Scope = requestTokenEntity.Scope, }; Global.DataContext.DeleteObject(requestTokenEntity); |