Class IdentityClient

Assembly: redb.Identity.Client.dll
public sealed class IdentityClient : IIdentityClient

Inheritance

Object→IdentityClient

Implements

Methods

AddGroupMemberAsync(long, AddMemberRequest, CancellationToken)

public Task AddGroupMemberAsync(long id, AddMemberRequest request, CancellationToken ct = default)

AddRevokedSidAsync(string?, string?, string?, DateTimeOffset?, CancellationToken)

W6-0: Publish a backchannel revocation entry. At least one of sid

public Task<RevokedSidEntry> AddRevokedSidAsync(string? sid, string? sub, string? clientId, DateTimeOffset? expiresAt = null, CancellationToken ct = default)

AdminResetUserPasswordAsync(long, AdminResetPasswordRequest, CancellationToken)

Admin-side password reset for the given user. Bypasses the OldPassword

public Task AdminResetUserPasswordAsync(long id, AdminResetPasswordRequest request, CancellationToken ct = default)

AssignClaimScopeAsync(AssignClaimScopeRequest, CancellationToken)

public Task<JsonElement> AssignClaimScopeAsync(AssignClaimScopeRequest request, CancellationToken ct = default)

AssignGroupToRoleAsync(long, long, CancellationToken)

public Task AssignGroupToRoleAsync(long roleId, long groupId, CancellationToken ct = default)

AssignUserToRoleAsync(long, long, CancellationToken)

public Task AssignUserToRoleAsync(long roleId, long userId, CancellationToken ct = default)

AttachScopeToRoleAsync(long, long, CancellationToken)

public Task AttachScopeToRoleAsync(long roleId, long scopeId, CancellationToken ct = default)

BeginMyWebAuthnRegistrationAsync(IDictionary<string, object?>, CancellationToken)

Begin a WebAuthn registration ceremony.

public Task<JsonElement> BeginMyWebAuthnRegistrationAsync(IDictionary<string, object?> body, CancellationToken ct = default)

ChangeEmailConfirmAsync(ChangeEmailConfirmRequest, CancellationToken)

Completes the change-of-e-mail flow by verifying + atomically consuming the

public Task<ChangeEmailConfirmResponse> ChangeEmailConfirmAsync(ChangeEmailConfirmRequest request, CancellationToken ct = default)

ChangeEmailRequestAsync(ChangeEmailRequestRequest, CancellationToken)

Initiates the verify-then-commit change-of-e-mail flow for the authenticated

public Task<ChangeEmailRequestResponse> ChangeEmailRequestAsync(ChangeEmailRequestRequest request, CancellationToken ct = default)

ChangeMyPasswordAsync(MeChangePasswordRequest, CancellationToken)

Change the caller's password. All sessions are revoked on success.

public Task<JsonElement> ChangeMyPasswordAsync(MeChangePasswordRequest request, CancellationToken ct = default)

ChangeUserPasswordAsync(long, ChangePasswordRequest, CancellationToken)

public Task ChangeUserPasswordAsync(long id, ChangePasswordRequest request, CancellationToken ct = default)

CompleteMyWebAuthnRegistrationAsync(IDictionary<string, object?>, CancellationToken)

Complete WebAuthn registration with browser attestation.

public Task<JsonElement> CompleteMyWebAuthnRegistrationAsync(IDictionary<string, object?> body, CancellationToken ct = default)

ConfirmMyMfaAsync(IDictionary<string, object?>, CancellationToken)

Confirm a pending MFA enrolment with the OTP code.

public Task<JsonElement> ConfirmMyMfaAsync(IDictionary<string, object?> body, CancellationToken ct = default)

ConfirmUserEmailAsync(long, string, string, string, CancellationToken)

Confirm Email OTP setup (admin) with the code from the e-mail and the mfa_state and setup_token the setup call returned.

public Task<JsonElement> ConfirmUserEmailAsync(long userId, string code, string mfaState, string setupToken, CancellationToken ct = default)

ConfirmUserSmsAsync(long, string, string?, CancellationToken)

Confirm SMS OTP setup (admin).

public Task<JsonElement> ConfirmUserSmsAsync(long userId, string code, string? mfaState = null, CancellationToken ct = default)

ConfirmUserTotpAsync(long, string, string, CancellationToken)

Confirm TOTP setup (admin) with the first code and the setup_token of the setup answer.

public Task<JsonElement> ConfirmUserTotpAsync(long userId, string code, string setupToken, CancellationToken ct = default)

CreateApplicationAsync(CreateApplicationRequest, CancellationToken)

public Task<ApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, CancellationToken ct = default)

CreateChildGroupAsync(long, CreateGroupRequest, CancellationToken)

public Task<GroupResponse> CreateChildGroupAsync(long parentId, CreateGroupRequest request, CancellationToken ct = default)

CreateClaimDefinitionAsync(CreateClaimDefinitionRequest, CancellationToken)

public Task<ClaimDefinitionResponse> CreateClaimDefinitionAsync(CreateClaimDefinitionRequest request, CancellationToken ct = default)

CreateClaimMapperAsync(CreateClaimMapperRequest, CancellationToken)

public Task<ClaimMapperResponse> CreateClaimMapperAsync(CreateClaimMapperRequest request, CancellationToken ct = default)

CreateClaimScopeAsync(CreateClaimScopeRequest, CancellationToken)

public Task<ClaimScopeResponse> CreateClaimScopeAsync(CreateClaimScopeRequest request, CancellationToken ct = default)

CreateFederationProviderAsync(CreateFederationProviderRequest, CancellationToken)

public Task<FederationProviderResponse> CreateFederationProviderAsync(CreateFederationProviderRequest request, CancellationToken ct = default)

CreateGroupAsync(CreateGroupRequest, CancellationToken)

public Task<GroupResponse> CreateGroupAsync(CreateGroupRequest request, CancellationToken ct = default)

CreateRoleAsync(CreateRoleRequest, CancellationToken)

public Task<RoleResponse> CreateRoleAsync(CreateRoleRequest request, CancellationToken ct = default)

CreateScimGroupAsync(ScimGroup, CancellationToken)

public Task<ScimGroup> CreateScimGroupAsync(ScimGroup group, CancellationToken ct = default)

CreateScimUserAsync(ScimUser, CancellationToken)

public Task<ScimUser> CreateScimUserAsync(ScimUser user, CancellationToken ct = default)

CreateScopeAsync(CreateScopeRequest, CancellationToken)

public Task<ScopeResponse> CreateScopeAsync(CreateScopeRequest request, CancellationToken ct = default)

CreateUserAsync(CreateUserRequest, CancellationToken)

public Task<UserResponse> CreateUserAsync(CreateUserRequest request, CancellationToken ct = default)

CreateWebhookAsync(CreateWebhookSubscriptionRequest, CancellationToken)

public Task<WebhookSubscriptionResponse> CreateWebhookAsync(CreateWebhookSubscriptionRequest request, CancellationToken ct = default)

DeleteApplicationAsync(string, CancellationToken)

public Task DeleteApplicationAsync(string id, CancellationToken ct = default)

DeleteClaimDefinitionAsync(long, CancellationToken)

public Task DeleteClaimDefinitionAsync(long id, CancellationToken ct = default)

DeleteClaimMapperAsync(string, CancellationToken)

public Task DeleteClaimMapperAsync(string id, CancellationToken ct = default)

DeleteClaimScopeAsync(string, CancellationToken)

public Task DeleteClaimScopeAsync(string id, CancellationToken ct = default)

DeleteFederationProviderAsync(string, CancellationToken)

public Task DeleteFederationProviderAsync(string id, CancellationToken ct = default)

DeleteGroupAsync(long, CancellationToken)

public Task DeleteGroupAsync(long id, CancellationToken ct = default)

DeleteMyWebAuthnCredentialAsync(string, CancellationToken)

Delete a single WebAuthn credential.

public Task<JsonElement> DeleteMyWebAuthnCredentialAsync(string key, CancellationToken ct = default)

DeleteRoleAsync(long, CancellationToken)

public Task DeleteRoleAsync(long id, CancellationToken ct = default)

DeleteScimGroupAsync(string, CancellationToken)

public Task DeleteScimGroupAsync(string id, CancellationToken ct = default)

DeleteScimUserAsync(string, CancellationToken)

public Task DeleteScimUserAsync(string id, CancellationToken ct = default)

DeleteScopeAsync(string, CancellationToken)

public Task DeleteScopeAsync(string id, CancellationToken ct = default)

DeleteUserAsync(string, CancellationToken)

public Task DeleteUserAsync(string idOrLogin, CancellationToken ct = default)

DeleteWebhookAsync(long, CancellationToken)

public Task DeleteWebhookAsync(long id, CancellationToken ct = default)

DetachScopeFromRoleAsync(long, long, CancellationToken)

public Task DetachScopeFromRoleAsync(long roleId, long scopeId, CancellationToken ct = default)

DisableMyMfaMethodAsync(string, CancellationToken)

Disable a single MFA method registered to the caller.

public Task<JsonElement> DisableMyMfaMethodAsync(string method, CancellationToken ct = default)

DisableUserEmailAsync(long, CancellationToken)

Disable Email OTP for a user (admin).

public Task<JsonElement> DisableUserEmailAsync(long userId, CancellationToken ct = default)

DisableUserSmsAsync(long, CancellationToken)

Disable SMS OTP for a user (admin).

public Task<JsonElement> DisableUserSmsAsync(long userId, CancellationToken ct = default)

DisableUserTotpAsync(long, CancellationToken)

Disable TOTP for a user (admin).

public Task<JsonElement> DisableUserTotpAsync(long userId, CancellationToken ct = default)

DownloadMyRecoveryCodesAsync(CancellationToken)

public Task<HttpResponseMessage> DownloadMyRecoveryCodesAsync(CancellationToken ct = default)

ExecuteScimBulkAsync(ScimBulkRequest, CancellationToken)

SCIM 2.0 Bulk operations (RFC 7644 §3.7).

public Task<ScimBulkResponse> ExecuteScimBulkAsync(ScimBulkRequest request, CancellationToken ct = default)

ForceLogoutUserAsync(long, CancellationToken)

Force-logout a user (revokes sessions + tokens, admin).

public Task<JsonElement> ForceLogoutUserAsync(long userId, CancellationToken ct = default)

ForgotPasswordAsync(PasswordForgotRequest, CancellationToken)

Initiates the password-recovery flow for the supplied e-mail. Anti-enumeration:

public Task<PasswordForgotResponse> ForgotPasswordAsync(PasswordForgotRequest request, CancellationToken ct = default)

GetApplicationAsync(string, CancellationToken)

public Task<ApplicationResponse> GetApplicationAsync(string id, CancellationToken ct = default)

GetClaimDefinitionAsync(long, CancellationToken)

public Task<ClaimDefinitionResponse> GetClaimDefinitionAsync(long id, CancellationToken ct = default)

GetClaimMapperAsync(string, CancellationToken)

public Task<ClaimMapperResponse> GetClaimMapperAsync(string id, CancellationToken ct = default)

GetClaimScopeAsync(string, CancellationToken)

public Task<ClaimScopeResponse> GetClaimScopeAsync(string id, CancellationToken ct = default)

GetDiscoveryDocumentAsync(CancellationToken)

OIDC discovery document, read at {Authority}/.well-known/openid-configuration

public Task<JsonElement> GetDiscoveryDocumentAsync(CancellationToken ct = default)

GetFederationProviderAsync(string, CancellationToken)

public Task<FederationProviderResponse> GetFederationProviderAsync(string id, CancellationToken ct = default)

GetGroupAsync(long, CancellationToken)

public Task<GroupResponse> GetGroupAsync(long id, CancellationToken ct = default)

GetGroupChildrenAsync(long, CancellationToken)

public Task<IReadOnlyList<GroupResponse>> GetGroupChildrenAsync(long id, CancellationToken ct = default)

GetGroupPathAsync(long, CancellationToken)

public Task<IReadOnlyList<GroupResponse>> GetGroupPathAsync(long id, CancellationToken ct = default)

GetGroupTreeAsync(long, CancellationToken)

public Task<JsonElement> GetGroupTreeAsync(long id, CancellationToken ct = default)

GetJwksAsync(CancellationToken)

JWKS, read at the jwks_uri the discovery document names.

public Task<JsonElement> GetJwksAsync(CancellationToken ct = default)

GetMyMfaStatusAsync(CancellationToken)

Get caller's MFA enrolment status.

public Task<JsonElement> GetMyMfaStatusAsync(CancellationToken ct = default)

GetMyProfileAsync(CancellationToken)

Get the caller's own profile.

public Task<JsonElement> GetMyProfileAsync(CancellationToken ct = default)

GetMyWebAuthnStatusAsync(CancellationToken)

Get caller's WebAuthn enrolment status.

public Task<JsonElement> GetMyWebAuthnStatusAsync(CancellationToken ct = default)

GetRevokedSidsSinceAsync(DateTimeOffset?, CancellationToken)

W6-0: Incremental poll of the backchannel revoked-sids list. Pass

public Task<RevokedSidsSinceResponse> GetRevokedSidsSinceAsync(DateTimeOffset? cursor = null, CancellationToken ct = default)

GetRoleAsync(long, CancellationToken)

public Task<RoleResponse> GetRoleAsync(long id, CancellationToken ct = default)

GetScimGroupAsync(string, CancellationToken)

public Task<ScimGroup> GetScimGroupAsync(string id, CancellationToken ct = default)

GetScimResourceTypesAsync(CancellationToken)

SCIM 2.0 ResourceTypes list.

public Task<JsonElement> GetScimResourceTypesAsync(CancellationToken ct = default)

GetScimSchemasAsync(CancellationToken)

SCIM 2.0 Schemas list.

public Task<JsonElement> GetScimSchemasAsync(CancellationToken ct = default)

GetScimServiceProviderConfigAsync(CancellationToken)

SCIM 2.0 ServiceProviderConfig (RFC 7643 §5).

public Task<ScimServiceProviderConfig> GetScimServiceProviderConfigAsync(CancellationToken ct = default)

GetScimUserAsync(string, CancellationToken)

public Task<ScimUser> GetScimUserAsync(string id, CancellationToken ct = default)

GetScopeAsync(string, CancellationToken)

public Task<ScopeResponse> GetScopeAsync(string id, CancellationToken ct = default)

GetUserAsync(string, CancellationToken)

public Task<UserResponse> GetUserAsync(string idOrLogin, CancellationToken ct = default)

GetUserGroupsAsync(long, CancellationToken)

public Task<JsonElement> GetUserGroupsAsync(long userId, CancellationToken ct = default)

GetUserInfoAsync(CancellationToken)

OIDC UserInfo endpoint. Requires Bearer access token with openid scope.

public Task<JsonElement> GetUserInfoAsync(CancellationToken ct = default)

GetUserMfaStatusAsync(long, CancellationToken)

Get MFA enrolment status for a user (admin).

public Task<JsonElement> GetUserMfaStatusAsync(long userId, CancellationToken ct = default)

GetWebhookAsync(long, CancellationToken)

public Task<WebhookSubscriptionResponse> GetWebhookAsync(long id, CancellationToken ct = default)

GrantMyConsentAsync(string, IEnumerable<string>, CancellationToken)

Grant the caller's permanent consent for an application. Used by native consent UIs

public Task<JsonElement> GrantMyConsentAsync(string clientId, IEnumerable<string> scopes, CancellationToken ct = default)

IntrospectTokenAsync(string, string?, string?, string?, CancellationToken)

Token introspection (RFC 7662). Client-authenticated.

public Task<IntrospectionResponse> IntrospectTokenAsync(string token, string? tokenTypeHint = null, string? clientId = null, string? clientSecret = null, CancellationToken ct = default)

IsGroupMemberAsync(long, long, CancellationToken)

public Task<bool> IsGroupMemberAsync(long id, long userId, CancellationToken ct = default)

ListAllSessionsAsync(int, int, CancellationToken)

Admin-wide paginated browse of active sessions across all users —

public Task<JsonElement> ListAllSessionsAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListApplicationsAsync(int, int, CancellationToken)

public Task<PagedResult<ApplicationResponse>> ListApplicationsAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListClaimDefinitionsAsync(int, int, string?, long?, CancellationToken)

public Task<PagedResult<ClaimDefinitionResponse>> ListClaimDefinitionsAsync(int offset = 0, int count = 50, string? scope = null, long? applicationId = null, CancellationToken ct = default)

ListClaimMappersAsync(string?, int, int, CancellationToken)

public Task<PagedResult<ClaimMapperResponse>> ListClaimMappersAsync(string? owner = null, int offset = 0, int count = 25, CancellationToken ct = default)

ListClaimScopeAssignmentsAsync(string, CancellationToken)

public Task<JsonElement> ListClaimScopeAssignmentsAsync(string applicationId, CancellationToken ct = default)

ListClaimScopesAsync(int, int, CancellationToken)

public Task<PagedResult<ClaimScopeResponse>> ListClaimScopesAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListFederationProvidersAsync(int, int, CancellationToken)

public Task<PagedResult<FederationProviderResponse>> ListFederationProvidersAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListGroupMembersAsync(long, CancellationToken)

public Task<IReadOnlyList<MemberResponse>> ListGroupMembersAsync(long id, CancellationToken ct = default)

ListMyConsentsAsync(CancellationToken)

List the caller's valid permanent consent grants.

public Task<JsonElement> ListMyConsentsAsync(CancellationToken ct = default)

ListMySessionsAsync(CancellationToken)

List the caller's own active sessions.

public Task<JsonElement> ListMySessionsAsync(CancellationToken ct = default)

ListMyWebAuthnCredentialsAsync(CancellationToken)

List the caller's registered WebAuthn credentials.

public Task<JsonElement> ListMyWebAuthnCredentialsAsync(CancellationToken ct = default)

ListPublicFederationProvidersAsync(CancellationToken)

Returns the public projection of configured federation providers (anonymous —

public Task<IReadOnlyList<PublicFederationProviderDescriptor>> ListPublicFederationProvidersAsync(CancellationToken ct = default)

ListRoleAssigneesAsync(long, CancellationToken)

public Task<IReadOnlyList<RoleAssignmentResponse>> ListRoleAssigneesAsync(long roleId, CancellationToken ct = default)

ListRoleScopesAsync(long, CancellationToken)

public Task<IReadOnlyList<RoleScopeResponse>> ListRoleScopesAsync(long roleId, CancellationToken ct = default)

ListRootGroupsAsync(int, int, CancellationToken)

public Task<IReadOnlyList<GroupResponse>> ListRootGroupsAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListScimGroupsAsync(int, int, string?, string?, string?, CancellationToken)

public Task<ScimListResponse<ScimGroup>> ListScimGroupsAsync(int startIndex = 1, int count = 25, string? filter = null, string? sortBy = null, string? sortOrder = null, CancellationToken ct = default)

ListScimUsersAsync(int, int, string?, string?, string?, CancellationToken)

List SCIM users (startIndex/count + optional filter — SCIM 2.0 spec).

public Task<ScimListResponse<ScimUser>> ListScimUsersAsync(int startIndex = 1, int count = 25, string? filter = null, string? sortBy = null, string? sortOrder = null, CancellationToken ct = default)

ListScopesAsync(int, int, CancellationToken)

public Task<PagedResult<ScopeResponse>> ListScopesAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListSessionsAsync(long, CancellationToken)

List active sessions for a user (admin).

public Task<JsonElement> ListSessionsAsync(long userId, CancellationToken ct = default)

ListTokensAsync(string?, int, int, CancellationToken)

List tokens, optionally filtered by subject (admin).

public Task<JsonElement> ListTokensAsync(string? subject = null, int offset = 0, int count = 20, CancellationToken ct = default)

ListUserConsentsAsync(long, CancellationToken)

List consent grants for a user (admin).

public Task<JsonElement> ListUserConsentsAsync(long userId, CancellationToken ct = default)

ListUsersAsync(int, int, CancellationToken)

public Task<PagedResult<UserResponse>> ListUsersAsync(int offset = 0, int count = 25, CancellationToken ct = default)

ListWebhooksAsync(int, int, CancellationToken)

public Task<PagedResult<WebhookSubscriptionResponse>> ListWebhooksAsync(int offset = 0, int count = 25, CancellationToken ct = default)

MoveGroupAsync(long, MoveGroupRequest, CancellationToken)

public Task MoveGroupAsync(long id, MoveGroupRequest request, CancellationToken ct = default)

PatchScimGroupAsync(string, ScimPatchRequest, CancellationToken)

public Task<ScimGroup> PatchScimGroupAsync(string id, ScimPatchRequest patch, CancellationToken ct = default)

PatchScimUserAsync(string, ScimPatchRequest, CancellationToken)

public Task<ScimUser> PatchScimUserAsync(string id, ScimPatchRequest patch, CancellationToken ct = default)

PruneTokensAsync(CancellationToken)

Trigger pruning of expired tokens (admin, may be slow).

public Task<JsonElement> PruneTokensAsync(CancellationToken ct = default)

QueryAuditAsync(AuditQueryRequest, CancellationToken)

Query the audit log with the given filters.

public Task<AuditQueryResponse> QueryAuditAsync(AuditQueryRequest filter, CancellationToken ct = default)

RegenerateMyRecoveryCodesAsync(CancellationToken)

Regenerate the caller's recovery codes (invalidates previous codes).

public Task<JsonElement> RegenerateMyRecoveryCodesAsync(CancellationToken ct = default)

RegenerateUserRecoveryCodesAsync(long, CancellationToken)

Regenerate recovery codes for a user (admin). Returns plain codes ONCE.

public Task<JsonElement> RegenerateUserRecoveryCodesAsync(long userId, CancellationToken ct = default)

RegisterAccountAsync(RegisterAccountRequest, CancellationToken)

Creates a new user account through the anonymous self-service registration

public Task<RegisterAccountResponse> RegisterAccountAsync(RegisterAccountRequest request, CancellationToken ct = default)

RemoveGroupMemberAsync(long, long, CancellationToken)

public Task RemoveGroupMemberAsync(long id, long userId, CancellationToken ct = default)

RenameMyWebAuthnCredentialAsync(string, IDictionary<string, object?>, CancellationToken)

Rename a single WebAuthn credential.

public Task<JsonElement> RenameMyWebAuthnCredentialAsync(string key, IDictionary<string, object?> body, CancellationToken ct = default)

ReplaceScimGroupAsync(string, ScimGroup, CancellationToken)

public Task<ScimGroup> ReplaceScimGroupAsync(string id, ScimGroup group, CancellationToken ct = default)

ReplaceScimUserAsync(string, ScimUser, CancellationToken)

public Task<ScimUser> ReplaceScimUserAsync(string id, ScimUser user, CancellationToken ct = default)

RequestTokenAsync(TokenRequest, CancellationToken)

OAuth/OIDC token endpoint (RFC 6749 §3.2). Sends form-urlencoded body.

public Task<TokenResponse> RequestTokenAsync(TokenRequest request, CancellationToken ct = default)

ResetPasswordAsync(PasswordResetRequest, CancellationToken)

Completes the password-recovery flow by verifying + atomically consuming the

public Task<PasswordResetResponse> ResetPasswordAsync(PasswordResetRequest request, CancellationToken ct = default)

RevokeAllUserConsentsAsync(long, CancellationToken)

Revoke all consent grants of a user (admin).

public Task<JsonElement> RevokeAllUserConsentsAsync(long userId, CancellationToken ct = default)

RevokeAllUserSessionsAsync(long, CancellationToken)

Revoke all sessions of a user (admin).

public Task<JsonElement> RevokeAllUserSessionsAsync(long userId, CancellationToken ct = default)

RevokeMyConsentAsync(string, CancellationToken)

Revoke the caller's permanent consent grant for a single client.

public Task<JsonElement> RevokeMyConsentAsync(string clientId, CancellationToken ct = default)

RevokeMyCurrentSessionAsync(CancellationToken)

Revoke the session bound to the caller's current access token.

public Task<JsonElement> RevokeMyCurrentSessionAsync(CancellationToken ct = default)

RevokeMyOtherSessionsAsync(CancellationToken)

Revoke all of the caller's sessions except the current one (identified by the sid claim).

public Task<JsonElement> RevokeMyOtherSessionsAsync(CancellationToken ct = default)

RevokeMySessionAsync(long, CancellationToken)

Revoke one of the caller's own sessions by id.

public Task<JsonElement> RevokeMySessionAsync(long sessionId, CancellationToken ct = default)

RevokeOAuthTokenAsync(string, string?, string?, string?, CancellationToken)

Token revocation (RFC 7009). Client-authenticated.

public Task<JsonElement> RevokeOAuthTokenAsync(string token, string? tokenTypeHint = null, string? clientId = null, string? clientSecret = null, CancellationToken ct = default)

RevokeSessionAsync(long, CancellationToken)

Revoke a single session by id (admin).

public Task<JsonElement> RevokeSessionAsync(long sessionId, CancellationToken ct = default)

RevokeTokenAdminAsync(string, CancellationToken)

Revoke a single token by id (admin).

public Task<JsonElement> RevokeTokenAdminAsync(string tokenId, CancellationToken ct = default)

RevokeTokensBySubjectAsync(IDictionary<string, object>, CancellationToken)

Revoke all tokens for a subject (admin).

public Task<JsonElement> RevokeTokensBySubjectAsync(IDictionary<string, object> request, CancellationToken ct = default)

RevokeUserConsentAsync(long, long, CancellationToken)

Revoke a single consent grant (admin).

public Task<JsonElement> RevokeUserConsentAsync(long userId, long applicationId, CancellationToken ct = default)

RotateApplicationSecretAsync(string, CancellationToken)

Rotates the client_secret of a confidential application. The returned

public Task<ApplicationResponse> RotateApplicationSecretAsync(string id, CancellationToken ct = default)

RotateWebhookSecretAsync(long, CancellationToken)

public Task<WebhookSubscriptionResponse> RotateWebhookSecretAsync(long id, CancellationToken ct = default)

SearchGroupsAsync(string?, string?, int, int, CancellationToken)

public Task<PagedResult<GroupResponse>> SearchGroupsAsync(string? query = null, string? groupType = null, int offset = 0, int count = 25, CancellationToken ct = default)

SearchRolesAsync(string?, string?, long?, int, int, CancellationToken)

public Task<PagedResult<RoleResponse>> SearchRolesAsync(string? query = null, string? audience = null, long? applicationId = null, int offset = 0, int count = 25, CancellationToken ct = default)

SearchUsersAsync(string, CancellationToken)

public Task<IReadOnlyList<UserResponse>> SearchUsersAsync(string query, CancellationToken ct = default)

SearchUsersPagedAsync(string, int, int, CancellationToken)

Paginated user search. Returns total match count + the requested page.

public Task<PagedResult<UserResponse>> SearchUsersPagedAsync(string query, int offset = 0, int count = 25, CancellationToken ct = default)

SetupMyMfaAsync(IDictionary<string, object?>, CancellationToken)

Begin enrolment of an MFA method for the caller.

public Task<JsonElement> SetupMyMfaAsync(IDictionary<string, object?> body, CancellationToken ct = default)

SetupUserEmailAsync(long, string, string, CancellationToken)

Begin Email OTP setup for a user (admin).

public Task<JsonElement> SetupUserEmailAsync(long userId, string username, string destination, CancellationToken ct = default)

SetupUserSmsAsync(long, string, string, CancellationToken)

Begin SMS OTP setup for a user (admin).

public Task<JsonElement> SetupUserSmsAsync(long userId, string username, string destination, CancellationToken ct = default)

SetupUserTotpAsync(long, string, CancellationToken)

Begin TOTP setup for a user (admin). Returns QR/secret.

public Task<JsonElement> SetupUserTotpAsync(long userId, string username, CancellationToken ct = default)

StartImpersonationAsync(long, string?, CancellationToken)

N7-3 — start an admin impersonation overlay (audit beacon).

public Task<JsonElement> StartImpersonationAsync(long targetUserId, string? reason = null, CancellationToken ct = default)

StopImpersonationAsync(long, CancellationToken)

N7-3 — stop an admin impersonation overlay (audit beacon). Same scope requirement.

public Task<JsonElement> StopImpersonationAsync(long targetUserId, CancellationToken ct = default)

UnassignClaimScopeAsync(string, string, CancellationToken)

public Task UnassignClaimScopeAsync(string applicationId, string scopeId, CancellationToken ct = default)

UnassignGroupFromRoleAsync(long, long, CancellationToken)

public Task UnassignGroupFromRoleAsync(long roleId, long groupId, CancellationToken ct = default)

UnassignUserFromRoleAsync(long, long, CancellationToken)

public Task UnassignUserFromRoleAsync(long roleId, long userId, CancellationToken ct = default)

UpdateApplicationAsync(string, UpdateApplicationRequest, CancellationToken)

public Task<ApplicationResponse> UpdateApplicationAsync(string id, UpdateApplicationRequest request, CancellationToken ct = default)

UpdateClaimDefinitionAsync(long, UpdateClaimDefinitionRequest, CancellationToken)

public Task<ClaimDefinitionResponse> UpdateClaimDefinitionAsync(long id, UpdateClaimDefinitionRequest request, CancellationToken ct = default)

UpdateClaimMapperAsync(string, UpdateClaimMapperRequest, CancellationToken)

public Task<ClaimMapperResponse> UpdateClaimMapperAsync(string id, UpdateClaimMapperRequest request, CancellationToken ct = default)

UpdateClaimScopeAsync(string, UpdateClaimScopeRequest, CancellationToken)

public Task<ClaimScopeResponse> UpdateClaimScopeAsync(string id, UpdateClaimScopeRequest request, CancellationToken ct = default)

UpdateFederationProviderAsync(string, UpdateFederationProviderRequest, CancellationToken)

public Task<FederationProviderResponse> UpdateFederationProviderAsync(string id, UpdateFederationProviderRequest request, CancellationToken ct = default)

UpdateGroupAsync(long, UpdateGroupRequest, CancellationToken)

public Task UpdateGroupAsync(long id, UpdateGroupRequest request, CancellationToken ct = default)

UpdateGroupMemberAsync(long, long, UpdateMemberRequest, CancellationToken)

public Task UpdateGroupMemberAsync(long id, long userId, UpdateMemberRequest request, CancellationToken ct = default)

UpdateMyProfileAsync(MeUpdateProfileRequest, CancellationToken)

Update the caller's own profile (PUT).

public Task<JsonElement> UpdateMyProfileAsync(MeUpdateProfileRequest request, CancellationToken ct = default)

UpdateRoleAsync(long, UpdateRoleRequest, CancellationToken)

public Task UpdateRoleAsync(long id, UpdateRoleRequest request, CancellationToken ct = default)

UpdateScopeAsync(string, UpdateScopeRequest, CancellationToken)

public Task<ScopeResponse> UpdateScopeAsync(string id, UpdateScopeRequest request, CancellationToken ct = default)

UpdateUserAsync(long, UpdateUserRequest, CancellationToken)

public Task<UserResponse> UpdateUserAsync(long id, UpdateUserRequest request, CancellationToken ct = default)

UpdateWebhookAsync(long, UpdateWebhookSubscriptionRequest, CancellationToken)

public Task UpdateWebhookAsync(long id, UpdateWebhookSubscriptionRequest request, CancellationToken ct = default)

VerifyEmailConfirmAsync(EmailVerifyConfirmRequest, CancellationToken)

Completes the e-mail-verification flow by verifying + atomically consuming the

public Task<EmailVerifyConfirmResponse> VerifyEmailConfirmAsync(EmailVerifyConfirmRequest request, CancellationToken ct = default)

VerifyEmailSendAsync(EmailVerifySendRequest, CancellationToken)

Initiates the e-mail-verification flow for the authenticated caller. Issues a

public Task<EmailVerifySendResponse> VerifyEmailSendAsync(EmailVerifySendRequest request, CancellationToken ct = default)

Constructors