示例#1
0
 /// <summary>
 /// Acquires the access token and related parameters that go into the formulation of the token endpoint's response to a client.
 /// </summary>
 /// <param name="accessTokenRequestMessage">Details regarding the resources that the access token will grant access to, and the identity of the client
 /// that will receive that access.
 /// Based on this information the receiving resource server can be determined and the lifetime of the access
 /// token can be set based on the sensitivity of the resources.
 /// </param>
 /// <param name="nonce">The nonce data.</param>
 /// <returns>A non-null parameters instance that will be disposed after it has been used.</returns>
 public Consumer.Session.Authorization.Messages.AccessTokenResult CreateAccessToken(Consumer.Session.Authorization.Messages.IAccessTokenRequest accessTokenRequestMessage, string nonce = null)
 {
     return(_tokenStore.CreateAccessToken(accessTokenRequestMessage, nonce));
 }