Share via


AzureActiveDirectoryLoginProvider.UseCustomAzureActiveDirectoryBearerAuthentication Method (IAppBuilder, WindowsAzureActiveDirectoryBearerAuthenticationOptions)

 

Registers the OWIN middleware for Azure Active Directory client flow authentication.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security.Providers
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Syntax

protected virtual void UseCustomAzureActiveDirectoryBearerAuthentication(
    IAppBuilder appBuilder,
    WindowsAzureActiveDirectoryBearerAuthenticationOptions options
)
protected:
virtual void UseCustomAzureActiveDirectoryBearerAuthentication(
    IAppBuilder^ appBuilder,
    WindowsAzureActiveDirectoryBearerAuthenticationOptions^ options
)
abstract UseCustomAzureActiveDirectoryBearerAuthentication : 
        appBuilder:IAppBuilder *
        options:WindowsAzureActiveDirectoryBearerAuthenticationOptions -> unit
override UseCustomAzureActiveDirectoryBearerAuthentication : 
        appBuilder:IAppBuilder *
        options:WindowsAzureActiveDirectoryBearerAuthenticationOptions -> unit
Protected Overridable Sub UseCustomAzureActiveDirectoryBearerAuthentication (
    appBuilder As IAppBuilder,
    options As WindowsAzureActiveDirectoryBearerAuthenticationOptions
)

Parameters

  • appBuilder
    Type: Owin.IAppBuilder

    The app builder

Remarks

This is here for test mocking - Azure Active Directory middleware unfortunately issues a remote request on creation to the Azure Active Directory metadata endpoint. This method allows us to mock this. Similarly, initialization of the custom auth provider is also done here, since it also makes requests to resolve tenant domains.

See Also

AzureActiveDirectoryLoginProvider Class
Microsoft.WindowsAzure.Mobile.Service.Security.Providers Namespace

Return to top