mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 02:02:23 +00:00
add authrequest to context
This commit is contained in:
@@ -33,6 +33,7 @@ async function loginFailed(branding?: BrandingSettings) {
|
||||
async function loginSuccess(
|
||||
userId: string,
|
||||
idpIntent: { idpIntentId: string; idpIntentToken: string },
|
||||
authRequestId?: string,
|
||||
branding?: BrandingSettings,
|
||||
) {
|
||||
const locale = getLocale();
|
||||
@@ -44,7 +45,11 @@ async function loginSuccess(
|
||||
<h1>{t("loginSuccess.title")}</h1>
|
||||
<div>
|
||||
{t("loginSuccess.description")}
|
||||
<IdpSignin userId={userId} idpIntent={idpIntent} />
|
||||
<IdpSignin
|
||||
userId={userId}
|
||||
idpIntent={idpIntent}
|
||||
authRequestId={authRequestId}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</DynamicTheme>
|
||||
|
||||
@@ -60,8 +60,6 @@ export async function createNewSessionForIdp(options: CreateNewSessionCommand) {
|
||||
return { error: "Could not create session" };
|
||||
}
|
||||
|
||||
console.log("sessionForIdp", session, authRequestId, session.id);
|
||||
|
||||
const url = await getNextUrl(
|
||||
authRequestId && session.id
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user