Class SelfServiceProfilesClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Client to manage Self Service Profiles.
public class SelfServiceProfilesClient : BaseClient, ISelfServiceProfilesClient
- Inheritance
-
SelfServiceProfilesClient
- Implements
- Inherited Members
Constructors
SelfServiceProfilesClient(IManagementConnection, Uri, IDictionary<string, string>)
public SelfServiceProfilesClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connectionIManagementConnectionbaseUriUridefaultHeadersIDictionary<string, string>
Methods
CreateAsync(SelfServiceProfileCreateRequest, CancellationToken)
Create self-service-profile.
public Task<SelfServiceProfile> CreateAsync(SelfServiceProfileCreateRequest request, CancellationToken cancellationToken = default)
Parameters
requestSelfServiceProfileCreateRequestcancellationTokenCancellationToken
Returns
CreateSsoTicketAsync(string, SelfServiceSsoTicketCreateRequest, CancellationToken)
Creates an sso-access ticket to initiate the Self Service SSO Flow using a self-service profile
public Task<SelfServiceSsoTicket> CreateSsoTicketAsync(string id, SelfServiceSsoTicketCreateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the sso-profile to retrieve
requestSelfServiceSsoTicketCreateRequestcancellationTokenCancellationToken
Returns
DeleteAsync(string, CancellationToken)
Delete a self-service-profile by id.
public Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringSelf-Service-Profile ID
cancellationTokenCancellationToken
Returns
GetAllAsync(PaginationInfo, CancellationToken)
Retrieve self-service-profile information.
public Task<IPagedList<SelfServiceProfile>> GetAllAsync(PaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
paginationPaginationInfocancellationTokenCancellationToken
Returns
GetAsync(string, CancellationToken)
Retrieve self-service-profile by id.
public Task<SelfServiceProfile> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringSelf-Service-Profile ID
cancellationTokenCancellationToken
Returns
GetCustomTextForSelfServiceProfileAsync(string, string, string, CancellationToken)
Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page
public Task<object> GetCustomTextForSelfServiceProfileAsync(string id, string language, string page, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the self-service profile.
languagestringThe language of the custom text.
pagestringThe page where the custom text is shown.
cancellationTokenCancellationToken
Returns
RevokeSsoTicketAsync(string, string, CancellationToken)
Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a 202 Accepted response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a 202 Accepted response is also returned, signaling that no further action is required. Clients should treat these 202 responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found.
public Task RevokeSsoTicketAsync(string profileId, string ticketId, CancellationToken cancellationToken = default)
Parameters
profileIdstringThe id of the self-service profile
ticketIdstringThe id of the ticket to revoke
cancellationTokenCancellationToken
Returns
SetCustomTextForSelfServiceProfileAsync(string, string, string, object, CancellationToken)
Updates text customizations for a given self-service profile, language and Self Service SSO Flow page.
public Task<object> SetCustomTextForSelfServiceProfileAsync(string id, string language, string page, object body, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the self-service profile.
languagestringThe language of the custom text.
pagestringThe page where the custom text is shown.
bodyobjectThe list of text keys and values to customize the self-service SSO page. Values can be plain text or rich HTML content limited to basic styling tags and hyperlinks.
cancellationTokenCancellationToken
Returns
UpdateAsync(string, SelfServiceProfileUpdateRequest, CancellationToken)
Retrieve self-service-profile by id.
public Task<SelfServiceProfile> UpdateAsync(string id, SelfServiceProfileUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
idstringSelf-Service-Profile ID
requestSelfServiceProfileUpdateRequestcancellationTokenCancellationToken