OAuthAuthorizationServerProvider.OnGrantAuthorizationCode Property
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
'Declaration
Public Property OnGrantAuthorizationCode As Func(Of OAuthGrantAuthorizationCodeContext, Task)
Get
Set
'Usage
Dim instance As OAuthAuthorizationServerProvider
Dim value As Func(Of OAuthGrantAuthorizationCodeContext, Task)
value = instance.OnGrantAuthorizationCode
instance.OnGrantAuthorizationCode = value
public Func<OAuthGrantAuthorizationCodeContext, Task> OnGrantAuthorizationCode { get; set; }
public:
property Func<OAuthGrantAuthorizationCodeContext^, Task^>^ OnGrantAuthorizationCode {
Func<OAuthGrantAuthorizationCodeContext^, Task^>^ get ();
void set (Func<OAuthGrantAuthorizationCodeContext^, Task^>^ value);
}
member OnGrantAuthorizationCode : Func<OAuthGrantAuthorizationCodeContext, Task> with get, set
function get OnGrantAuthorizationCode () : Func<OAuthGrantAuthorizationCodeContext, Task>
function set OnGrantAuthorizationCode (value : Func<OAuthGrantAuthorizationCodeContext, Task>)
Property Value
Type: System.Func<OAuthGrantAuthorizationCodeContext, Task>