mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
Merge pull request #2937 from ray-lee/saml
Add support for SAML authentication.
This commit is contained in:
@@ -5,5 +5,6 @@ export enum AuthMethodType {
|
|||||||
Ip = 'ip',
|
Ip = 'ip',
|
||||||
X509 = 'x509',
|
X509 = 'x509',
|
||||||
Oidc = 'oidc',
|
Oidc = 'oidc',
|
||||||
Orcid = 'orcid'
|
Orcid = 'orcid',
|
||||||
|
Saml = 'saml'
|
||||||
}
|
}
|
||||||
|
@@ -40,6 +40,11 @@ export class AuthMethod {
|
|||||||
this.location = location;
|
this.location = location;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'saml': {
|
||||||
|
this.authMethodType = AuthMethodType.Saml;
|
||||||
|
this.location = location;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
break;
|
break;
|
||||||
|
@@ -11,6 +11,7 @@ export const AUTH_METHOD_FOR_DECORATOR_MAP = new Map<AuthMethodType, AuthMethodT
|
|||||||
[AuthMethodType.Shibboleth, LogInExternalProviderComponent],
|
[AuthMethodType.Shibboleth, LogInExternalProviderComponent],
|
||||||
[AuthMethodType.Oidc, LogInExternalProviderComponent],
|
[AuthMethodType.Oidc, LogInExternalProviderComponent],
|
||||||
[AuthMethodType.Orcid, LogInExternalProviderComponent],
|
[AuthMethodType.Orcid, LogInExternalProviderComponent],
|
||||||
|
[AuthMethodType.Saml, LogInExternalProviderComponent],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -3210,6 +3210,8 @@
|
|||||||
|
|
||||||
"login.form.password": "Password",
|
"login.form.password": "Password",
|
||||||
|
|
||||||
|
"login.form.saml": "Log in with SAML",
|
||||||
|
|
||||||
"login.form.shibboleth": "Log in with Shibboleth",
|
"login.form.shibboleth": "Log in with Shibboleth",
|
||||||
|
|
||||||
"login.form.submit": "Log in",
|
"login.form.submit": "Log in",
|
||||||
|
Reference in New Issue
Block a user