OAuthBearerAuthenticationExtensions Class

 

Extension methods to add OAuth Bearer authentication capabilities to an OWIN application pipeline

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

System::Object
  Owin::OAuthBearerAuthenticationExtensions

[ExtensionAttribute]
public ref class OAuthBearerAuthenticationExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticUseOAuthBearerAuthentication(IAppBuilder^, OAuthBearerAuthenticationOptions^)

Adds Bearer token processing to an OWIN application pipeline. This middleware understands appropriately formatted and secured tokens which appear in the request header. If the Options.AuthenticationMode is Active, the claims within the bearer token are added to the current request's IPrincipal User. If the Options.AuthenticationMode is Passive, then the current request is not modified, but IAuthenticationManager AuthenticateAsync may be used at any time to obtain the claims from the request's bearer token. See also http://tools.ietf.org/html/rfc6749

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: