TokenProvider.CreateAadTokenProvider TokenProvider.CreateAadTokenProvider TokenProvider.CreateAadTokenProvider Method

Definition

Overloads

CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, String, UserPasswordCredential, Uri) CreateAadTokenProvider(AuthenticationContext, String, UserPasswordCredential, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, ClientCredential, Uri) CreateAadTokenProvider(AuthenticationContext, ClientCredential, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, ClientAssertionCertificate, Uri) CreateAadTokenProvider(AuthenticationContext, ClientAssertionCertificate, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, Uri)

Creates an Azure Active Directory token provider.

public static Microsoft.ServiceBus.TokenProvider CreateAadTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, string clientId, Uri redirectUri, Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters platformParameters, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userIdentifier, Uri audience);
static member CreateAadTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * Uri -> Microsoft.ServiceBus.TokenProvider
Parameters
authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientId
String String String

ClientId for AAD.

redirectUri
Uri Uri Uri

The redrectUri on Client App.

platformParameters
IPlatformParameters IPlatformParameters IPlatformParameters

Platform parameters

userIdentifier
UserIdentifier UserIdentifier UserIdentifier

User Identifier

audience
Uri Uri Uri

The service resource URI for token acquisition.

Returns

The TokenProvider for returning Json web token.

CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri) CreateAadTokenProvider(AuthenticationContext, String, Uri, IPlatformParameters, Uri)

Creates an Azure Active Directory token provider.

public static Microsoft.ServiceBus.TokenProvider CreateAadTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, string clientId, Uri redirectUri, Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters platformParameters, Uri audience);
static member CreateAadTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters * Uri -> Microsoft.ServiceBus.TokenProvider
Public Shared Function CreateAadTokenProvider (authContext As AuthenticationContext, clientId As String, redirectUri As Uri, platformParameters As IPlatformParameters, audience As Uri) As TokenProvider
Parameters
authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientId
String String String

ClientId for AAD.

redirectUri
Uri Uri Uri

The redrectUri on Client App.

platformParameters
IPlatformParameters IPlatformParameters IPlatformParameters

Platform parameters

audience
Uri Uri Uri

The service resource URI for token acquisition.

Returns

The TokenProvider for returning Json web token.

CreateAadTokenProvider(AuthenticationContext, String, UserPasswordCredential, Uri) CreateAadTokenProvider(AuthenticationContext, String, UserPasswordCredential, Uri)

Creates an Azure Active Directory token provider.

public static Microsoft.ServiceBus.TokenProvider CreateAadTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, string clientId, Microsoft.IdentityModel.Clients.ActiveDirectory.UserPasswordCredential userPasswordCredential, Uri audience);
static member CreateAadTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Microsoft.IdentityModel.Clients.ActiveDirectory.UserPasswordCredential * Uri -> Microsoft.ServiceBus.TokenProvider
Parameters
authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientId
String String String

ClientId for AAD.

userPasswordCredential
UserPasswordCredential UserPasswordCredential UserPasswordCredential

The user password credential.

audience
Uri Uri Uri

The service resource URI for token acquisition.

Returns

The TokenProvider for returning Json web token.

CreateAadTokenProvider(AuthenticationContext, ClientCredential, Uri) CreateAadTokenProvider(AuthenticationContext, ClientCredential, Uri)

Creates an Azure Active Directory token provider.

public static Microsoft.ServiceBus.TokenProvider CreateAadTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential clientCredential, Uri audience);
static member CreateAadTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Uri -> Microsoft.ServiceBus.TokenProvider
Parameters
authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientCredential
ClientCredential ClientCredential ClientCredential

The app credential.

audience
Uri Uri Uri

The service resource URI for token acquisition.

Returns

The TokenProvider for returning Json web token.

CreateAadTokenProvider(AuthenticationContext, ClientAssertionCertificate, Uri) CreateAadTokenProvider(AuthenticationContext, ClientAssertionCertificate, Uri)

Creates an Azure Active Directory token provider.

public static Microsoft.ServiceBus.TokenProvider CreateAadTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate clientAssertionCertificate, Uri audience);
static member CreateAadTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate * Uri -> Microsoft.ServiceBus.TokenProvider
Parameters
authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientAssertionCertificate
ClientAssertionCertificate ClientAssertionCertificate ClientAssertionCertificate

The client assertion certificate credential.

audience
Uri Uri Uri

The service resource URI for token acquisition.

Returns

The TokenProvider for returning Json web token.

Applies to