Removed switch statement, changed AuthMethod parsing in authInterceptor to be more generic

This commit is contained in:
Julius Gruber
2019-09-02 15:01:03 +02:00
parent beb0f2d410
commit 901951eaa8
12 changed files with 94 additions and 58 deletions

View File

@@ -1,12 +1,10 @@
import {AuthMethodType} from '../../../shared/log-in/authMethods-type';
export class AuthMethodModel {
authMethodName: string;
authMethodType: AuthMethodType;
location?: string;
authMethodType: AuthMethodType
constructor(authMethodName: string, location?: string) {
this.authMethodName = authMethodName;
this.location = location;
switch (authMethodName) {
case 'ip': {