feat(server): allow to use ssl on server (#8722)

This commit is contained in:
Antoine Moreaux
2024-11-26 16:30:51 +01:00
committed by GitHub
parent 08f163592b
commit eb39288583
8 changed files with 172 additions and 17 deletions

View File

@ -209,7 +209,11 @@ export class SSOService {
buildIssuerURL(
identityProvider: Pick<WorkspaceSSOIdentityProvider, 'id' | 'type'>,
) {
return `${this.environmentService.get('SERVER_URL')}/auth/${identityProvider.type.toLowerCase()}/login/${identityProvider.id}`;
const authorizationUrl = new URL(this.environmentService.get('SERVER_URL'));
authorizationUrl.pathname = `/auth/${identityProvider.type.toLowerCase()}/login/${identityProvider.id}`;
return authorizationUrl.toString();
}
private isOIDCIdentityProvider(