This commit is contained in:
peintnermax
2024-08-06 09:29:33 +02:00
parent 64dfb70837
commit d06f335043
2 changed files with 0 additions and 8 deletions

View File

@@ -107,11 +107,6 @@ export default async function Page({
.then((resp) => {
const { idpInformation, userId } = resp;
console.log(
"idpInformation",
`userId:'${userId}'`,
JSON.stringify(idpInformation),
);
if (idpInformation) {
// handle login
if (userId) {

View File

@@ -100,14 +100,11 @@ export async function GET(request: NextRequest) {
}
if (authRequestId) {
console.log(`Login with authRequest: ${authRequestId}`);
const { authRequest } = await getAuthRequest({ authRequestId });
let organization = "";
let idpId = "";
console.log(`AuthRequest: ${JSON.stringify(authRequest)}`);
if (authRequest?.scope) {
const orgScope = authRequest.scope.find((s: string) =>
ORG_SCOPE_REGEX.test(s),