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)
Inheritance Hierarchy
System.Object
Owin.OAuthBearerAuthenticationExtensions
Syntax
public static class OAuthBearerAuthenticationExtensions
[ExtensionAttribute]
public ref class OAuthBearerAuthenticationExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type OAuthBearerAuthenticationExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class OAuthBearerAuthenticationExtensions
Methods
Name | Description | |
---|---|---|
UseOAuthBearerAuthentication(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 |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Return to top