chore(web): Remove API url env variable

This commit is contained in:
Faruk AYDIN
2023-08-28 14:37:10 +02:00
parent 1e2adedcbf
commit e06b7ab87a
8 changed files with 15 additions and 17 deletions

View File

@@ -75,6 +75,14 @@ class SamlAuthProvider extends Base {
},
});
static get virtualAttributes() {
return ['loginUrl'];
}
get loginUrl() {
return new URL(`/login/saml/${this.issuer}`, appConfig.baseUrl).toString();
}
get config(): SamlConfig {
const callbackUrl = new URL(
`/login/saml/${this.issuer}/callback`,