OAuthBearerAuthenticationMiddleware Constructor

Bearer authentication component which is added to an OWIN pipeline. This constructor is not called by application code directly, instead it is added by calling the the IAppBuilder UseOAuthBearerAuthentication extension method.

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

Syntax

'Declaration
Public Sub New ( _
    next As OwinMiddleware, _
    app As IAppBuilder, _
    options As OAuthBearerAuthenticationOptions _
)
'Usage
Dim next As OwinMiddleware 
Dim app As IAppBuilder 
Dim options As OAuthBearerAuthenticationOptions 

Dim instance As New OAuthBearerAuthenticationMiddleware(next, app, _
    options)
public OAuthBearerAuthenticationMiddleware(
    OwinMiddleware next,
    IAppBuilder app,
    OAuthBearerAuthenticationOptions options
)
public:
OAuthBearerAuthenticationMiddleware(
    OwinMiddleware^ next, 
    IAppBuilder^ app, 
    OAuthBearerAuthenticationOptions^ options
)
new : 
        next:OwinMiddleware * 
        app:IAppBuilder * 
        options:OAuthBearerAuthenticationOptions -> OAuthBearerAuthenticationMiddleware
public function OAuthBearerAuthenticationMiddleware(
    next : OwinMiddleware, 
    app : IAppBuilder, 
    options : OAuthBearerAuthenticationOptions
)

Parameters

  • app
    Type: IAppBuilder

See Also

Reference

OAuthBearerAuthenticationMiddleware Class

Microsoft.Owin.Security.OAuth Namespace