mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
Merge pull request #384 from Murgeye/main
This commit is contained in:
@@ -121,20 +121,27 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
|||||||
'Got an OIDC response error body: %s',
|
'Got an OIDC response error body: %s',
|
||||||
JSON.stringify(error.cause),
|
JSON.stringify(error.cause),
|
||||||
);
|
);
|
||||||
}
|
} else if (error instanceof oidc.AuthorizationResponseError) {
|
||||||
|
|
||||||
if (error instanceof oidc.AuthorizationResponseError) {
|
|
||||||
log.error(
|
log.error(
|
||||||
'auth',
|
'auth',
|
||||||
'Got an OIDC authorization response error: %s',
|
'Got an OIDC authorization response error: %s',
|
||||||
error.error,
|
error.error,
|
||||||
);
|
);
|
||||||
}
|
} else if (error instanceof oidc.WWWAuthenticateChallengeError) {
|
||||||
|
|
||||||
if (error instanceof oidc.WWWAuthenticateChallengeError) {
|
|
||||||
log.error('auth', 'Got an OIDC WWW-Authenticate challenge error');
|
log.error('auth', 'Got an OIDC WWW-Authenticate challenge error');
|
||||||
|
} else if (error instanceof oidc.ClientError) {
|
||||||
|
log.error(
|
||||||
|
'auth',
|
||||||
|
'Got an OIDC authorization client error: %s',
|
||||||
|
error.cause.message,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
log.error(
|
||||||
|
'auth',
|
||||||
|
'Got an OIDC error: %s',
|
||||||
|
JSON.stringify(error.cause),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/login?s=error_auth_failed');
|
return redirect('/login?s=error_auth_failed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user