JwtBearerAuthenticationExtensions.UseJwtBearerAuthentication Method (IAppBuilder, JwtBearerAuthenticationOptions)
Adds JWT bearer token middleware to your web application pipeline.
Namespace: Owin
Assembly: Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)
Syntax
public static IAppBuilder UseJwtBearerAuthentication(
this IAppBuilder app,
JwtBearerAuthenticationOptions options
)
public:
[ExtensionAttribute]
static IAppBuilder^ UseJwtBearerAuthentication(
IAppBuilder^ app,
JwtBearerAuthenticationOptions^ options
)
static member UseJwtBearerAuthentication :
app:IAppBuilder *
options:JwtBearerAuthenticationOptions -> IAppBuilder
<ExtensionAttribute>
Public Shared Function UseJwtBearerAuthentication (
app As IAppBuilder,
options As JwtBearerAuthenticationOptions
) As IAppBuilder
Parameters
app
Type: Owin.IAppBuilderThe IAppBuilder passed to your configuration method.
options
Type: Microsoft.Owin.Security.Jwt.JwtBearerAuthenticationOptionsAn options class that controls the middleware behavior.
Return Value
Type: Owin.IAppBuilder
The original app parameter.
See Also
JwtBearerAuthenticationExtensions Class
Owin Namespace
Return to top