fix(sso): adjust callback URL generation for SAML and OIDC (#9460)
Updated SAML-specific callback URL handling to include the ID, while OIDC URLs now use the server base URL from config. Also added a debug log in SSO authentication and cleaned up redirection URL logic in the frontend.
This commit is contained in:
@ -159,7 +159,11 @@ export class SSOService {
|
||||
) {
|
||||
const callbackURL = new URL(this.environmentService.get('SERVER_URL'));
|
||||
|
||||
callbackURL.pathname = `/auth/${identityProvider.type.toLowerCase()}/callback/${identityProvider.id}`;
|
||||
callbackURL.pathname = `/auth/${identityProvider.type.toLowerCase()}/callback`;
|
||||
|
||||
if (identityProvider.type === IdentityProviderType.SAML) {
|
||||
callbackURL.pathname += `/${identityProvider.id}`;
|
||||
}
|
||||
|
||||
return callbackURL.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user