mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02: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",
|
||||
"https://absolutely-handy-falcon.ngrok-free.app",
|
||||
"https://dev-pee8hhc3qbjlqedb.us.auth0.com",
|
||||
"https://trial-2804699.okta.com",
|
||||
]
|
||||
: []),
|
||||
];
|
||||
@@ -120,7 +121,7 @@ export const { handler, api } = betterAuth({
|
||||
}
|
||||
} else {
|
||||
const isSSORequest = context?.path.includes("/sso/callback");
|
||||
if (!isSSORequest) {
|
||||
if (isSSORequest) {
|
||||
return;
|
||||
}
|
||||
const isAdminPresent = await db.query.member.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user