Share via


AppBuilderExtensions.UseOAuthBearerTokens Method

Configures the application to use OWIN middleware based OAuth bearer tokens.

Namespace:  Owin
Assembly:  Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub UseOAuthBearerTokens ( _
    app As IAppBuilder, _
    options As OAuthAuthorizationServerOptions _
)
'Usage
Dim app As IAppBuilder 
Dim options As OAuthAuthorizationServerOptions 

app.UseOAuthBearerTokens(options)
public static void UseOAuthBearerTokens(
    this IAppBuilder app,
    OAuthAuthorizationServerOptions options
)
[ExtensionAttribute]
public:
static void UseOAuthBearerTokens(
    IAppBuilder^ app, 
    OAuthAuthorizationServerOptions^ options
)
static member UseOAuthBearerTokens : 
        app:IAppBuilder * 
        options:OAuthAuthorizationServerOptions -> unit
public static function UseOAuthBearerTokens(
    app : IAppBuilder, 
    options : OAuthAuthorizationServerOptions
)

Parameters

  • app
    Type: IAppBuilder
    The application builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also

Reference

AppBuilderExtensions Class

Owin Namespace

Other Resources

ASP.NET Identity