Added backend lookup if shibboleth is enabled

This commit is contained in:
Julius Gruber
2019-06-25 13:10:19 +02:00
parent 14419ca567
commit 26f01d6f8f
10 changed files with 46 additions and 37 deletions

View File

@@ -30,7 +30,7 @@ import {
RetrieveAuthMethodsAction,
RetrieveAuthMethodsErrorAction,
RetrieveAuthMethodsSuccessAction,
ShibbLoginAction
GetJWTafterShibbLoginAction
} from './auth.actions';
import { EPerson } from '../eperson/models/eperson.model';
import { AuthStatus } from './models/auth-status.model';
@@ -65,7 +65,7 @@ export class AuthEffects {
@Effect()
public shibbLogin$: Observable<Action> = this.actions$.pipe(
ofType(AuthActionTypes.SHIBB_LOGIN),
switchMap((action: ShibbLoginAction) => {
switchMap((action: GetJWTafterShibbLoginAction) => {
return this.authService.startShibbAuth().pipe(
take(1),
map((response: AuthStatus) => new AuthenticationSuccessAction(response.token)),