TokenProvider.CreateAadTokenProvider Method

Definition

Overloads

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

Creates an Azure Active Directory token provider.

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

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, String, UserPasswordCredential, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, ClientCredential, Uri)

Creates an Azure Active Directory token provider.

CreateAadTokenProvider(AuthenticationContext, ClientAssertionCertificate, Uri)

Creates an Azure Active Directory token provider.

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 for AAD.

clientId
String

ClientId for AAD.

redirectUri
Uri

The redrectUri on Client App.

platformParameters
IPlatformParameters

Platform parameters

userIdentifier
UserIdentifier

User Identifier

audience
Uri

The service resource URI for token acquisition.

Returns

TokenProvider

The TokenProvider for returning Json web token.

Applies to

Product Introduced

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 for AAD.

clientId
String

ClientId for AAD.

redirectUri
Uri

The redrectUri on Client App.

platformParameters
IPlatformParameters

Platform parameters

audience
Uri

The service resource URI for token acquisition.

Returns

TokenProvider

The TokenProvider for returning Json web token.

Applies to

Product Introduced

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 for AAD.

clientId
String

ClientId for AAD.

userPasswordCredential
UserPasswordCredential

The user password credential.

audience
Uri

The service resource URI for token acquisition.

Returns

TokenProvider

The TokenProvider for returning Json web token.

Applies to

Product Introduced

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 for AAD.

clientCredential
ClientCredential

The app credential.

audience
Uri

The service resource URI for token acquisition.

Returns

TokenProvider

The TokenProvider for returning Json web token.

Applies to

Product Introduced

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 for AAD.

clientAssertionCertificate
ClientAssertionCertificate

The client assertion certificate credential.

audience
Uri

The service resource URI for token acquisition.

Returns

TokenProvider

The TokenProvider for returning Json web token.

Applies to

Product Introduced