mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 03:03:59 +00:00
org primary domain scope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user