Basic implmentation of the dynamic rendering of Authentication Methods

This commit is contained in:
Julius Gruber
2019-09-04 16:19:59 +02:00
parent c428b1deef
commit 6167012e32
5 changed files with 18 additions and 17 deletions

View File

@@ -62,17 +62,17 @@ export class AuthEffects {
* Authenticate user.
* @method authenticate
*/
/* @Effect()
@Effect()
public shibbolethAuthenticate$: Observable<Action> = this.actions$.pipe(
ofType(AuthActionTypes.START_SHIBBOLETH_AUTHENTICATION),
switchMap((action: StartShibbolethAuthenticationAction) => {
return this.authService.authenticate(action.payload.location).pipe(
return this.authService.shibbolethAuthenticate(action.payload.location).pipe(
take(1),
map((response: AuthStatus) => new AuthenticationSuccessAction(response.token)),
catchError((error) => observableOf(new AuthenticationErrorAction(error)))
);
})
);*/
);
/**
* Shib Login.