IOAuthAuthorizationServerProvider.GrantAuthorizationCode Method (OAuthGrantAuthorizationCodeContext)

 

Called when a request to the Token endpoint arrives with a "grant_type" of "authorization_code". This occurs after the Authorize endpoint as redirected the user-agent back to the client with a "code" parameter, and the client is exchanging that for an "access_token". The claims and properties associated with the authorization code are present in the context.Ticket. The application must call context.Validated to instruct the Authorization Server middleware to issue an access token based on those claims and properties. The call to context.Validated may be given a different AuthenticationTicket or ClaimsIdentity in order to control which information flows from authorization code to access token. The default behavior when using the OAuthAuthorizationServerProvider is to flow information from the authorization code to the access token unmodified. See also http://tools.ietf.org/html/rfc6749\#section-4.1.3

Namespace:   Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

Task GrantAuthorizationCode(
    OAuthGrantAuthorizationCodeContext context
)
Task^ GrantAuthorizationCode(
    OAuthGrantAuthorizationCodeContext^ context
)
abstract GrantAuthorizationCode : 
        context:OAuthGrantAuthorizationCodeContext -> Task
Function GrantAuthorizationCode (
    context As OAuthGrantAuthorizationCodeContext
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Task to enable asynchronous execution

See Also

IOAuthAuthorizationServerProvider Interface
Microsoft.Owin.Security.OAuth Namespace

Return to top