Added mock components for dynamic login components

This commit is contained in:
Julius Gruber
2019-08-08 09:29:00 +02:00
parent 68968ca70a
commit bcc6daa39f
22 changed files with 120 additions and 69 deletions

View File

@@ -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,
}