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)

Protected Overridable Sub UseCustomAzureActiveDirectoryBearerAuthentication (
	appBuilder As IAppBuilder,
	options As WindowsAzureActiveDirectoryBearerAuthenticationOptions
)

Parameters

appBuilder
Type: Owin.IAppBuilder

The app builder

options
Type: Microsoft.Owin.Security.ActiveDirectory.WindowsAzureActiveDirectoryBearerAuthenticationOptions

The authentication options to use

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.

Return to top
Show: