Skip to content

Commit fd7a18b

Browse files
authored
Merge pull request #2937 from ray-lee/saml
Add support for SAML authentication.
2 parents 9731282 + 449c092 commit fd7a18b

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
@@ -3210,6 +3210,8 @@
32103210

32113211
"login.form.password": "Password",
32123212

3213+
"login.form.saml": "Log in with SAML",
3214+
32133215
"login.form.shibboleth": "Log in with Shibboleth",
32143216

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

0 commit comments

Comments
 (0)