OAuthAuthorizationServerProvider.GrantCustomExtension Method (OAuthGrantCustomExtensionContext)

 

Called when a request to the Token endpoint arrives with a "grant_type" of any other value. If the application supports custom grant types it is entirely responsible for determining if the request should result in an access_token. If context.Validated is called with ticket information the response body is produced in the same way as the other standard grant types. If additional response parameters must be included they may be added in the final TokenEndpoint call. See also http://tools.ietf.org/html/rfc6749\#section-4.5

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

Syntax

public virtual Task GrantCustomExtension(
    OAuthGrantCustomExtensionContext context
)
public:
virtual Task^ GrantCustomExtension(
    OAuthGrantCustomExtensionContext^ context
)
abstract GrantCustomExtension : 
        context:OAuthGrantCustomExtensionContext -> Task
override GrantCustomExtension : 
        context:OAuthGrantCustomExtensionContext -> Task
Public Overridable Function GrantCustomExtension (
    context As OAuthGrantCustomExtensionContext
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Task to enable asynchronous execution

Implements

IOAuthAuthorizationServerProvider.GrantCustomExtension(OAuthGrantCustomExtensionContext)

See Also

OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace

Return to top