Skip to content

Commit 449c092

Browse files
author
Ray Lee
committed
Add support for SAML authentication.
1 parent 4fd3df4 commit 449c092

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

src/app/core/auth/models/auth.method-type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export enum AuthMethodType {
55
Ip = 'ip',
66
X509 = 'x509',
77
Oidc = 'oidc',
8-
Orcid = 'orcid'
8+
Orcid = 'orcid',
9+
Saml = 'saml'
910
}

src/app/core/auth/models/auth.method.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export class AuthMethod {
4040
this.location = location;
4141
break;
4242
}
43+
case 'saml': {
44+
this.authMethodType = AuthMethodType.Saml;
45+
this.location = location;
46+
break;
47+
}
4348

4449
default: {
4550
break;

src/app/shared/log-in/methods/log-in.methods-decorator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const AUTH_METHOD_FOR_DECORATOR_MAP = new Map<AuthMethodType, AuthMethodT
1111
[AuthMethodType.Shibboleth, LogInExternalProviderComponent],
1212
[AuthMethodType.Oidc, LogInExternalProviderComponent],
1313
[AuthMethodType.Orcid, LogInExternalProviderComponent],
14+
[AuthMethodType.Saml, LogInExternalProviderComponent],
1415
]);
1516

1617
/**

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,6 +3188,8 @@
31883188

31893189
"login.form.password": "Password",
31903190

3191+
"login.form.saml": "Log in with SAML",
3192+
31913193
"login.form.shibboleth": "Log in with Shibboleth",
31923194

31933195
"login.form.submit": "Log in",

0 commit comments

Comments
 (0)