mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 09:54:00 +00:00
idp linking
This commit is contained in:
@@ -24,10 +24,8 @@ export default async function Page({
|
|||||||
return retrieveIDPIntent(id, token)
|
return retrieveIDPIntent(id, token)
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
const { idpInformation, userId } = resp;
|
const { idpInformation, userId } = resp;
|
||||||
console.log("provider", provider, idpInformation, "userId", userId);
|
|
||||||
|
|
||||||
if (idpInformation) {
|
if (idpInformation) {
|
||||||
// handle login
|
|
||||||
if (userId) {
|
if (userId) {
|
||||||
return (
|
return (
|
||||||
<DynamicTheme branding={branding}>
|
<DynamicTheme branding={branding}>
|
||||||
@@ -44,7 +42,6 @@ export default async function Page({
|
|||||||
</DynamicTheme>
|
</DynamicTheme>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// handle register
|
|
||||||
return createUser(provider, idpInformation)
|
return createUser(provider, idpInformation)
|
||||||
.then((userId) => {
|
.then((userId) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export const sessionService = createSessionServiceClient(transport);
|
|||||||
export const managementService = createManagementServiceClient(transport);
|
export const managementService = createManagementServiceClient(transport);
|
||||||
export const userService = createUserServiceClient(transport);
|
export const userService = createUserServiceClient(transport);
|
||||||
export const oidcService = createOIDCServiceClient(transport);
|
export const oidcService = createOIDCServiceClient(transport);
|
||||||
|
|
||||||
export const settingsService = createSettingsServiceClient(transport);
|
export const settingsService = createSettingsServiceClient(transport);
|
||||||
|
|
||||||
export async function getBrandingSettings(organization?: string) {
|
export async function getBrandingSettings(organization?: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user