Share via


OAuthAuthorizationServerOptions.AccessTokenProvider Property

Produces a bearer token the client application will typically be providing to resource server as the authorization bearer http request header. If not provided the token produced on the server's default data protection. If a different access token provider or format is assigned, a compatible instance must be assigned to the OAuthBearerAuthenticationOptions.AccessTokenProvider or OAuthBearerAuthenticationOptions.AccessTokenFormat property of the resource 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 OAuthAuthorizationServerOptions 
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

See Also

Reference

OAuthAuthorizationServerOptions Class

Microsoft.Owin.Security.OAuth Namespace