OAuthBearerAuthenticationOptions.AccessTokenProvider Property

Receives the bearer token the client application will be providing to web application. If not provided the token produced on the server's default data protection by using the AccessTokenFormat. If a different access token provider or format is assigned, a compatible instance must be assigned to the OAuthAuthorizationServerOptions.AccessTokenProvider and OAuthAuthorizationServerOptions.AccessTokenFormat of the authorization server.

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

Syntax

'Declaration
Public Property AccessTokenProvider As IAuthenticationTokenProvider 
    Get 
    Set
'Usage
Dim instance As OAuthBearerAuthenticationOptions 
Dim value As IAuthenticationTokenProvider 

value = instance.AccessTokenProvider

instance.AccessTokenProvider = value
public IAuthenticationTokenProvider AccessTokenProvider { get; set; }
public:
property IAuthenticationTokenProvider^ AccessTokenProvider {
    IAuthenticationTokenProvider^ get ();
    void set (IAuthenticationTokenProvider^ value);
}
member AccessTokenProvider : IAuthenticationTokenProvider with get, set
function get AccessTokenProvider () : IAuthenticationTokenProvider 
function set AccessTokenProvider (value : IAuthenticationTokenProvider)

Property Value

Type: Microsoft.Owin.Security.Infrastructure.IAuthenticationTokenProvider
Returns IAuthenticationTokenProvider.

See Also

Reference

OAuthBearerAuthenticationOptions Class

Microsoft.Owin.Security.OAuth Namespace