First functional prototype

This commit is contained in:
Julius Gruber
2019-08-07 17:57:31 +02:00
parent 92989a618a
commit 68968ca70a
20 changed files with 293 additions and 25 deletions

View File

@@ -1,9 +1,33 @@
export class AuthMethodModel {
authMethodName: string;
location?: string;
authMethodConstant: AuthMethodConstants
constructor(authMethodName: string, location?: string) {
this.authMethodName = authMethodName;
this.location = location;
switch (authMethodName) {
case 'password': {
this.authMethodConstant = AuthMethodConstants.PASSWORD;
break;
}
case 'shibboleth': {
this.authMethodConstant = AuthMethodConstants.SHIBBOLETH;
break;
}
case 'ldap': {
this.authMethodConstant = AuthMethodConstants.LDAP;
break;
}
default: {
break;
}
}
}
}
export enum AuthMethodConstants {
PASSWORD,
SHIBBOLETH,
LDAP
}