signin with idp routing

This commit is contained in:
peintnermax
2024-03-19 14:15:54 +01:00
parent b5bef43888
commit 2b1e5312f4
6 changed files with 156 additions and 54 deletions

View File

@@ -103,7 +103,7 @@ export async function getPasswordComplexitySettings(
.then((resp: GetPasswordComplexitySettingsResponse) => resp.settings);
}
export async function createSession(
export async function createSessionForLoginname(
server: ZitadelServer,
loginName: string,
password: string | undefined,
@@ -144,6 +144,7 @@ export async function createSessionForUserIdAndIdpIntent(
}
): Promise<CreateSessionResponse | undefined> {
const sessionService = session.getSession(server);
return sessionService.createSession(
{
checks: { user: { userId }, idpIntent },