OAuthAuthorizationServerProvider.OnGrantRefreshToken Property
Called when a request to the Token endpoint arrives with a "grant_type" of "client_credentials". This occurs when a registered client application wishes to acquire an "access_token" to interact with protected resources on it's own behalf, rather than on behalf of an authenticated user. If the web application supports the client credentials it may assume the context.ClientId has been validated by the ValidateClientAuthentication call. To issue an access token the context.Validated must be called with a new ticket containing the claims about the client application which should be associated with the access token. The default behavior is to reject this grant type. See also http://tools.ietf.org/html/rfc6749\#section-4.4.2
Namespace: Microsoft.Owin.Security.OAuth
Assembly: Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)
Syntax
'Declaration
Public Property OnGrantRefreshToken As Func(Of OAuthGrantRefreshTokenContext, Task)
Get
Set
'Usage
Dim instance As OAuthAuthorizationServerProvider
Dim value As Func(Of OAuthGrantRefreshTokenContext, Task)
value = instance.OnGrantRefreshToken
instance.OnGrantRefreshToken = value
public Func<OAuthGrantRefreshTokenContext, Task> OnGrantRefreshToken { get; set; }
public:
property Func<OAuthGrantRefreshTokenContext^, Task^>^ OnGrantRefreshToken {
Func<OAuthGrantRefreshTokenContext^, Task^>^ get ();
void set (Func<OAuthGrantRefreshTokenContext^, Task^>^ value);
}
member OnGrantRefreshToken : Func<OAuthGrantRefreshTokenContext, Task> with get, set
function get OnGrantRefreshToken () : Func<OAuthGrantRefreshTokenContext, Task>
function set OnGrantRefreshToken (value : Func<OAuthGrantRefreshTokenContext, Task>)
Property Value
Type: System.Func<OAuthGrantRefreshTokenContext, Task>