From e846aa801fb32f3f2d06d2f3bb2a7952e7c6823d Mon Sep 17 00:00:00 2001 From: Julius Gruber Date: Fri, 9 Aug 2019 08:10:32 +0200 Subject: [PATCH] authService startShibAuth() changed --- src/app/core/auth/auth.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index 1084a384de..7df511b4b3 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -122,15 +122,15 @@ export class AuthService { const password = 'rest' const body = (`password=${Base64EncodeUrl(password)}&user=${Base64EncodeUrl(user)}`); const options: HttpOptions = Object.create({});*/ - let headers = new HttpHeaders(); - headers = headers.append('Content-Type', 'application/x-www-form-urlencoded'); + // let headers = new HttpHeaders(); + // headers = headers.append('Content-Type', 'application/x-www-form-urlencoded'); // options.headers = headers; return this.authRequestService.postToEndpoint('login').pipe( map((status: AuthStatus) => { if (status.authenticated) { return status; } else { - throw(new Error('Invalid email or password')); + throw(new Error('Shibboleth login failed')); } }))