AzureActiveDirectoryLoginProvider.UseCustomAzureActiveDirectoryBearerAuthentication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers the OWIN middleware for Azure Active Directory client flow authentication.
protected virtual void UseCustomAzureActiveDirectoryBearerAuthentication (Owin.IAppBuilder appBuilder, Microsoft.Owin.Security.ActiveDirectory.WindowsAzureActiveDirectoryBearerAuthenticationOptions options);
abstract member UseCustomAzureActiveDirectoryBearerAuthentication : Owin.IAppBuilder * Microsoft.Owin.Security.ActiveDirectory.WindowsAzureActiveDirectoryBearerAuthenticationOptions -> unit
override this.UseCustomAzureActiveDirectoryBearerAuthentication : Owin.IAppBuilder * Microsoft.Owin.Security.ActiveDirectory.WindowsAzureActiveDirectoryBearerAuthenticationOptions -> unit
Protected Overridable Sub UseCustomAzureActiveDirectoryBearerAuthentication (appBuilder As IAppBuilder, options As WindowsAzureActiveDirectoryBearerAuthenticationOptions)
Parameters
- appBuilder
- Owin.IAppBuilder
The app builder
- options
- Microsoft.Owin.Security.ActiveDirectory.WindowsAzureActiveDirectoryBearerAuthenticationOptions
The authentication options to use
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.
Applies to
Azure SDK for .NET