共用方式為


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

public IAuthenticationTokenProvider AccessTokenProvider { get; set; }
public:
property IAuthenticationTokenProvider^ AccessTokenProvider {
    IAuthenticationTokenProvider^ get();
    void set(IAuthenticationTokenProvider^ value);
}
member AccessTokenProvider : IAuthenticationTokenProvider with get, set
Public Property AccessTokenProvider As IAuthenticationTokenProvider

Property Value

Type: Microsoft.Owin.Security.Infrastructure.IAuthenticationTokenProvider

Returns IAuthenticationTokenProvider.

See Also

OAuthAuthorizationServerOptions Class
Microsoft.Owin.Security.OAuth Namespace

Return to top