org primary domain scope

This commit is contained in:
peintnermax
2024-04-03 15:16:06 +02:00
parent 0a1219b07b
commit 9153b5c474
3 changed files with 29 additions and 5 deletions

View File

@@ -22,10 +22,11 @@ import {
SetSessionResponse,
SetSessionRequest,
ListUsersResponse,
ListUsersRequest,
management,
DeleteSessionResponse,
VerifyPasskeyRegistrationResponse,
LoginSettings,
GetOrgByDomainGlobalResponse,
GetLoginSettingsResponse,
ListAuthenticationMethodTypesResponse,
StartIdentityProviderIntentRequest,
@@ -331,6 +332,13 @@ export async function listUsers(
);
}
export async function getOrgByDomain(
domain: string
): Promise<GetOrgByDomainGlobalResponse> {
const mgmtService = management.getManagement(server);
return mgmtService.getOrgByDomainGlobal({ domain }, {});
}
export async function startIdentityProviderFlow(
server: ZitadelServer,
{ idpId, urls }: StartIdentityProviderIntentRequest