mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
cleanup
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
|
import { PROVIDER_MAPPING } from "@/lib/idp";
|
||||||
import {
|
import {
|
||||||
addIDPLink,
|
addIDPLink,
|
||||||
createUser,
|
createUser,
|
||||||
getBrandingSettings,
|
getBrandingSettings,
|
||||||
getIDPByID,
|
getIDPByID,
|
||||||
listUsers,
|
listUsers,
|
||||||
PROVIDER_MAPPING,
|
|
||||||
retrieveIDPIntent,
|
retrieveIDPIntent,
|
||||||
} from "@/lib/zitadel";
|
} from "@/lib/zitadel";
|
||||||
import Alert, { AlertType } from "@/ui/Alert";
|
import Alert, { AlertType } from "@/ui/Alert";
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const PROVIDER_MAPPING: {
|
|||||||
rI: IDPInformation,
|
rI: IDPInformation,
|
||||||
) => PartialMessage<AddHumanUserRequest>;
|
) => PartialMessage<AddHumanUserRequest>;
|
||||||
} = {
|
} = {
|
||||||
[IdentityProviderType.GOOGLE]: (idp: IDPInformation) => {
|
[idpTypeToSlug(IdentityProviderType.GOOGLE)]: (idp: IDPInformation) => {
|
||||||
const rawInfo = idp.rawInformation?.toJson() as {
|
const rawInfo = idp.rawInformation?.toJson() as {
|
||||||
User: {
|
User: {
|
||||||
email: string;
|
email: string;
|
||||||
@@ -65,7 +65,7 @@ export const PROVIDER_MAPPING: {
|
|||||||
};
|
};
|
||||||
return req;
|
return req;
|
||||||
},
|
},
|
||||||
[IdentityProviderType.AZURE_AD]: (idp: IDPInformation) => {
|
[idpTypeToSlug(IdentityProviderType.AZURE_AD)]: (idp: IDPInformation) => {
|
||||||
const rawInfo = idp.rawInformation?.toJson() as {
|
const rawInfo = idp.rawInformation?.toJson() as {
|
||||||
mail: string;
|
mail: string;
|
||||||
displayName?: string;
|
displayName?: string;
|
||||||
@@ -96,7 +96,7 @@ export const PROVIDER_MAPPING: {
|
|||||||
|
|
||||||
return req;
|
return req;
|
||||||
},
|
},
|
||||||
[IdentityProviderType.GITHUB]: (idp: IDPInformation) => {
|
[idpTypeToSlug(IdentityProviderType.GITHUB)]: (idp: IDPInformation) => {
|
||||||
const rawInfo = idp.rawInformation?.toJson() as {
|
const rawInfo = idp.rawInformation?.toJson() as {
|
||||||
email: string;
|
email: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user