mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-13 07:25:17 +00:00
feat(auth): add Okta domain to SSO provider list and adjust SSO request handling
- Included a new Okta domain in the array of allowed domains for SSO authentication. - Modified the SSO request handling logic to return early if the request is an SSO callback, enhancing the flow of authentication.
This commit is contained in:
@@ -62,6 +62,7 @@ export const { handler, api } = betterAuth({
|
|||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
"https://absolutely-handy-falcon.ngrok-free.app",
|
"https://absolutely-handy-falcon.ngrok-free.app",
|
||||||
"https://dev-pee8hhc3qbjlqedb.us.auth0.com",
|
"https://dev-pee8hhc3qbjlqedb.us.auth0.com",
|
||||||
|
"https://trial-2804699.okta.com",
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
];
|
];
|
||||||
@@ -120,7 +121,7 @@ export const { handler, api } = betterAuth({
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const isSSORequest = context?.path.includes("/sso/callback");
|
const isSSORequest = context?.path.includes("/sso/callback");
|
||||||
if (!isSSORequest) {
|
if (isSSORequest) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const isAdminPresent = await db.query.member.findFirst({
|
const isAdminPresent = await db.query.member.findFirst({
|
||||||
|
|||||||
Reference in New Issue
Block a user