OAuthAuthorizationServerProvider.OnGrantCustomExtension Property

Called when a request to the Token andpoint 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

'Declaration
Public Property OnGrantCustomExtension As Func(Of OAuthGrantCustomExtensionContext, Task)
    Get 
    Set
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim value As Func(Of OAuthGrantCustomExtensionContext, Task)

value = instance.OnGrantCustomExtension

instance.OnGrantCustomExtension = value
public Func<OAuthGrantCustomExtensionContext, Task> OnGrantCustomExtension { get; set; }
public:
property Func<OAuthGrantCustomExtensionContext^, Task^>^ OnGrantCustomExtension {
    Func<OAuthGrantCustomExtensionContext^, Task^>^ get ();
    void set (Func<OAuthGrantCustomExtensionContext^, Task^>^ value);
}
member OnGrantCustomExtension : Func<OAuthGrantCustomExtensionContext, Task> with get, set
function get OnGrantCustomExtension () : Func<OAuthGrantCustomExtensionContext, Task>
function set OnGrantCustomExtension (value : Func<OAuthGrantCustomExtensionContext, Task>)

Property Value

Type: System.Func<OAuthGrantCustomExtensionContext, Task>

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace