mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-25 06:47:41 +00:00
cleanup
This commit is contained in:
@@ -107,11 +107,6 @@ export default async function Page({
|
|||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
const { idpInformation, userId } = resp;
|
const { idpInformation, userId } = resp;
|
||||||
|
|
||||||
console.log(
|
|
||||||
"idpInformation",
|
|
||||||
`userId:'${userId}'`,
|
|
||||||
JSON.stringify(idpInformation),
|
|
||||||
);
|
|
||||||
if (idpInformation) {
|
if (idpInformation) {
|
||||||
// handle login
|
// handle login
|
||||||
if (userId) {
|
if (userId) {
|
||||||
|
@@ -100,14 +100,11 @@ export async function GET(request: NextRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (authRequestId) {
|
if (authRequestId) {
|
||||||
console.log(`Login with authRequest: ${authRequestId}`);
|
|
||||||
const { authRequest } = await getAuthRequest({ authRequestId });
|
const { authRequest } = await getAuthRequest({ authRequestId });
|
||||||
|
|
||||||
let organization = "";
|
let organization = "";
|
||||||
let idpId = "";
|
let idpId = "";
|
||||||
|
|
||||||
console.log(`AuthRequest: ${JSON.stringify(authRequest)}`);
|
|
||||||
|
|
||||||
if (authRequest?.scope) {
|
if (authRequest?.scope) {
|
||||||
const orgScope = authRequest.scope.find((s: string) =>
|
const orgScope = authRequest.scope.find((s: string) =>
|
||||||
ORG_SCOPE_REGEX.test(s),
|
ORG_SCOPE_REGEX.test(s),
|
||||||
|
Reference in New Issue
Block a user