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