Class BrandingClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /branding endpoints.
public class BrandingClient : BaseClient, IBrandingClient
- Inheritance
-
BrandingClient
- Implements
- Inherited Members
Constructors
BrandingClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of BrandingClient.
public BrandingClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Methods
CreateBrandingPhoneNotificationTemplateAsync(BrandingPhoneNotificationTemplateCreateRequest, CancellationToken)
Create a phone notification template
public Task<BrandingPhoneNotificationTemplate> CreateBrandingPhoneNotificationTemplateAsync(BrandingPhoneNotificationTemplateCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingPhoneNotificationTemplateCreateRequestBrandingPhoneNotificationTemplateCreateRequest containing information on the template to be created
cancellationToken
CancellationToken
Returns
CreateBrandingThemeAsync(BrandingThemeCreateRequest, CancellationToken)
Create branding theme.
public Task<BrandingTheme> CreateBrandingThemeAsync(BrandingThemeCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingThemeCreateRequestA BrandingThemeCreateRequest containing information required for creating a BrandingTheme
cancellationToken
CancellationToken
Returns
CreatePhoneProviderAsync(BrandingPhoneProviderCreateRequest, CancellationToken)
Create a phone provider . The credentials object requires different properties depending on the phone provider (which is specified using the name property).
public Task<BrandingPhoneProvider> CreatePhoneProviderAsync(BrandingPhoneProviderCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingPhoneProviderCreateRequestBrandingPhoneProviderCreateRequest containing information required to create a BrandingPhoneProvider
cancellationToken
CancellationToken
Returns
- Task<BrandingPhoneProvider>
The newly created BrandingPhoneProvider
DeleteBrandingPhoneNotificationTemplateAsync(string, CancellationToken)
Delete a phone notification template
public Task DeleteBrandingPhoneNotificationTemplateAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneNotificationTemplate
cancellationToken
CancellationToken
Returns
DeleteBrandingThemeAsync(string, CancellationToken)
Delete branding theme.
public Task DeleteBrandingThemeAsync(string brandingThemeId, CancellationToken cancellationToken = default)
Parameters
brandingThemeId
stringID of the branding Theme to delete
cancellationToken
CancellationToken
Returns
DeletePhoneProviderAsync(string, CancellationToken)
Delete the configured phone provider.
public Task DeletePhoneProviderAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneProvider to delete
cancellationToken
CancellationToken
Returns
DeleteUniversalLoginTemplateAsync(CancellationToken)
Delete the template for the New Universal Login Experience
public Task DeleteUniversalLoginTemplateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
GetAllBrandingPhoneNotificationTemplatesAsync(BrandingPhoneNotificationTemplatesGetRequest, CancellationToken)
Get a list of phone notification templates
public Task<IList<BrandingPhoneNotificationTemplate>> GetAllBrandingPhoneNotificationTemplatesAsync(BrandingPhoneNotificationTemplatesGetRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingPhoneNotificationTemplatesGetRequestcancellationToken
CancellationToken
Returns
GetAllPhoneProvidersAsync(BrandingPhoneProviderGetRequest, CancellationToken)
Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified.
public Task<IList<BrandingPhoneProvider>> GetAllPhoneProvidersAsync(BrandingPhoneProviderGetRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingPhoneProviderGetRequestcancellationToken
CancellationToken
Returns
- Task<IList<BrandingPhoneProvider>>
List of BrandingPhoneProviders
GetAsync(CancellationToken)
Retrieve branding settings.
public Task<Branding> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
GetBrandingPhoneNotificationTemplateAsync(string, CancellationToken)
Get a phone notification template
public Task<BrandingPhoneNotificationTemplate> GetBrandingPhoneNotificationTemplateAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneNotificationTemplate
cancellationToken
CancellationToken
Returns
GetBrandingThemeAsync(string, CancellationToken)
Retrieve branding theme.
public Task<BrandingTheme> GetBrandingThemeAsync(string brandingThemeId, CancellationToken cancellationToken = default)
Parameters
brandingThemeId
stringID of the branding Theme to retrieve
cancellationToken
CancellationToken
Returns
GetDefaultBrandingThemeAsync(CancellationToken)
Retrieve default branding theme.
public Task<BrandingTheme> GetDefaultBrandingThemeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- Task<BrandingTheme>
The default BrandingTheme
GetPhoneProviderAsync(string, CancellationToken)
Retrieve phone provider details. A list of fields to include or exclude may also be specified.
public Task<BrandingPhoneProvider> GetPhoneProviderAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneProvider to be retrieved.
cancellationToken
CancellationToken
Returns
GetUniversalLoginTemplateAsync(CancellationToken)
Retrieves the template for the New Universal Login Experience.
public Task<UniversalLoginTemplate> GetUniversalLoginTemplateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<UniversalLoginTemplate>
The UniversalLoginTemplate for the new universal login experience.
ResetBrandingPhoneNotificationTemplate(string, CancellationToken)
Resets a phone notification template values
public Task<BrandingPhoneNotificationTemplate> ResetBrandingPhoneNotificationTemplate(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the Notification Template to be reset
cancellationToken
CancellationToken
Returns
SendBrandingPhoneTemplateTestNotificationAsync(string, BrandingPhoneTestNotificationRequest, CancellationToken)
Send a test phone notification for the configured template
public Task<BrandingPhoneTestNotificationResponse> SendBrandingPhoneTemplateTestNotificationAsync(string id, BrandingPhoneTestNotificationRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringId of the Branding Phone Notification Template
request
BrandingPhoneTestNotificationRequestcancellationToken
CancellationToken
Returns
SendBrandingPhoneTestNotificationAsync(string, BrandingPhoneTestNotificationRequest, CancellationToken)
Send a test phone notification for the configured provider
public Task<BrandingPhoneTestNotificationResponse> SendBrandingPhoneTestNotificationAsync(string id, BrandingPhoneTestNotificationRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneProvider
request
BrandingPhoneTestNotificationRequestBrandingPhoneTestNotificationRequest containing information on whom to send the notification to.
cancellationToken
CancellationToken
Returns
SetUniversalLoginTemplateAsync(UniversalLoginTemplateUpdateRequest, CancellationToken)
Sets the template for the New Universal Login Experience.
public Task<UniversalLoginTemplate> SetUniversalLoginTemplateAsync(UniversalLoginTemplateUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
UniversalLoginTemplateUpdateRequestThe UniversalLoginTemplateUpdateRequest containing details of the template to set.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<UniversalLoginTemplate>
The newly updated UniversalLoginTemplate.
UpdateAsync(BrandingUpdateRequest, CancellationToken)
s Updates the branding for a tenant.
public Task<Branding> UpdateAsync(BrandingUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
BrandingUpdateRequestA BrandingUpdateRequest containing the branding information to update.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
UpdateBrandingPhoneNotificationTemplate(string, BrandingPhoneNotificationTemplateUpdateRequest, CancellationToken)
Update a phone notification template
public Task<BrandingPhoneNotificationTemplate> UpdateBrandingPhoneNotificationTemplate(string id, BrandingPhoneNotificationTemplateUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringID of the Notification Template to be updated
request
BrandingPhoneNotificationTemplateUpdateRequestBrandingPhoneNotificationTemplateUpdateRequest containing information to be updated
cancellationToken
CancellationToken
Returns
UpdateBrandingThemeAsync(string, BrandingThemeUpdateRequest, CancellationToken)
Update branding theme.
public Task<BrandingTheme> UpdateBrandingThemeAsync(string brandingThemeId, BrandingThemeUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
brandingThemeId
stringID of the branding Theme to update
request
BrandingThemeUpdateRequestA BrandingThemeUpdateRequest containing information required for updating a BrandingTheme
cancellationToken
CancellationToken
Returns
- Task<BrandingTheme>
An updated BrandingTheme
UpdatePhoneProviderAsync(string, BrandingPhoneProviderUpdateRequest, CancellationToken)
Update a phone provider . The credentials object requires different properties depending on the email provider (which is specified using the name property).
public Task<BrandingPhoneProvider> UpdatePhoneProviderAsync(string id, BrandingPhoneProviderUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringID of the BrandingPhoneProvider to update
request
BrandingPhoneProviderUpdateRequestA BrandingPhoneProviderUpdateRequest containing the information to update
cancellationToken
CancellationToken