post to login endpoint without credentials

This commit is contained in:
Julius Gruber
2019-06-24 12:58:40 +02:00
parent 0b56b0d8dc
commit a504d96897
2 changed files with 5 additions and 5 deletions

View File

@@ -117,14 +117,14 @@ export class AuthService {
public startShibbAuth(): Observable<AuthStatus> {
console.log('startShibAuth() was called');
// Attempt authenticating the user using the supplied credentials.
const user = 'test@test.at';
/* const user = 'test@test.at';
const password = 'rest'
const body = (`password=${Base64EncodeUrl(password)}&user=${Base64EncodeUrl(user)}`);
const options: HttpOptions = Object.create({});
const options: HttpOptions = Object.create({});*/
let headers = new HttpHeaders();
headers = headers.append('Content-Type', 'application/x-www-form-urlencoded');
options.headers = headers;
return this.authRequestService.postToEndpoint('login', body, options).pipe(
// options.headers = headers;
return this.authRequestService.postToEndpoint('login').pipe(
map((status: AuthStatus) => {
if (status.authenticated) {
return status;