mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Added mock components for dynamic login components
This commit is contained in:
@@ -7,18 +7,27 @@ export class AuthMethodModel {
|
||||
this.authMethodName = authMethodName;
|
||||
this.location = location;
|
||||
switch (authMethodName) {
|
||||
case 'password': {
|
||||
this.authMethodConstant = AuthMethodConstants.PASSWORD;
|
||||
break;
|
||||
}
|
||||
case 'shibboleth': {
|
||||
this.authMethodConstant = AuthMethodConstants.SHIBBOLETH;
|
||||
case 'ip': {
|
||||
this.authMethodConstant = AuthMethodConstants.IP;
|
||||
break;
|
||||
}
|
||||
case 'ldap': {
|
||||
this.authMethodConstant = AuthMethodConstants.LDAP;
|
||||
break;
|
||||
}
|
||||
case 'shibboleth': {
|
||||
this.authMethodConstant = AuthMethodConstants.SHIBBOLETH;
|
||||
break;
|
||||
}
|
||||
case 'x509': {
|
||||
this.authMethodConstant = AuthMethodConstants.X509;
|
||||
break;
|
||||
}
|
||||
case 'password': {
|
||||
this.authMethodConstant = AuthMethodConstants.PASSWORD;
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
@@ -27,7 +36,9 @@ export class AuthMethodModel {
|
||||
}
|
||||
|
||||
export enum AuthMethodConstants {
|
||||
PASSWORD,
|
||||
IP,
|
||||
LDAP,
|
||||
SHIBBOLETH,
|
||||
LDAP
|
||||
X509,
|
||||
PASSWORD,
|
||||
}
|
||||
|
Reference in New Issue
Block a user