Class SsoTicketClient
- Namespace
- Auth0.ManagementApi.SelfServiceProfiles
- Assembly
- Auth0.ManagementApi.dll
public class SsoTicketClient : ISsoTicketClient
- Inheritance
-
SsoTicketClient
- Implements
- Inherited Members
- Extension Methods
Methods
CreateAsync(string, CreateSelfServiceProfileSsoTicketRequestContent, RequestOptions?, CancellationToken)
Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile.
public WithRawResponseTask<CreateSelfServiceProfileSsoTicketResponseContent> CreateAsync(string id, CreateSelfServiceProfileSsoTicketRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestCreateSelfServiceProfileSsoTicketRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.SelfServiceProfiles.SsoTicket.CreateAsync(
"id",
new CreateSelfServiceProfileSsoTicketRequestContent()
);
RevokeAsync(string, string, RequestOptions?, 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 RevokeAsync(string profileId, string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
profileIdstringidstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.SelfServiceProfiles.SsoTicket.RevokeAsync("profileId", "id");