Share via


IOAuthBearerAuthenticationProvider Interface

 

Specifies callback methods which the OAuthBearerAuthenticationMiddleware invokes to enable developer control over the authentication process. />

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

Syntax

public interface IOAuthBearerAuthenticationProvider
public interface class IOAuthBearerAuthenticationProvider
type IOAuthBearerAuthenticationProvider = interface end
Public Interface IOAuthBearerAuthenticationProvider

Methods

Name Description
System_CAPS_pubmethod ApplyChallenge(OAuthChallengeContext)

Called each time a challenge is being sent to the client. By implementing this method the application may modify the challenge as needed.

System_CAPS_pubmethod RequestToken(OAuthRequestTokenContext)

Invoked before the ClaimsIdentity is created. Gives the application an opportunity to find the identity from a different location, adjust, or reject the token.

System_CAPS_pubmethod ValidateIdentity(OAuthValidateIdentityContext)

Called each time a request identity has been validated by the middleware. By implementing this method the application may alter or reject the identity which has arrived with the request.

See Also

Microsoft.Owin.Security.OAuth Namespace

Return to top