mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Hardcoded ssoLoginUrl in auth.service retrieveAuthMethods
This commit is contained in:
@@ -77,7 +77,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
return authStatus;
|
||||
}
|
||||
|
||||
private getLocationfromHeader(header: HttpHeaders): string {
|
||||
private getSSOLocationfromHeader(header: HttpHeaders): string {
|
||||
console.log('HEADER www-authenticate: ', header.get('www-authenticate'));
|
||||
let location = '';
|
||||
if (header.get('www-authenticate').startsWith('shibboleth realm')) {
|
||||
@@ -164,7 +164,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
// console.log('error: ', error);
|
||||
let location = '';
|
||||
if (error.headers.get('www-authenticate') != null) {
|
||||
location = this.getLocationfromHeader(error.headers);
|
||||
location = this.getSSOLocationfromHeader(error.headers);
|
||||
}
|
||||
// Create a new HttpResponse and return it, so it can be handle properly by AuthService.
|
||||
const authResponse = new HttpResponse({
|
||||
|
Reference in New Issue
Block a user