Removed old shibboleth code

This commit is contained in:
Julius Gruber
2019-08-05 15:32:41 +02:00
parent de8bcce8be
commit 12941640a4
5 changed files with 7 additions and 60 deletions

View File

@@ -230,30 +230,14 @@ export class AuthService {
map((status: AuthStatus) => {
let authMethods: AuthMethodModel[];
if (isNotEmpty(status.authMethods)) {
// url = this.parseSSOLocation(status.ssoLoginUrl);
// console.log('Parsed SSOLoginUrl: ', url);
// url = 'https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at';
authMethods = status.authMethods;
authMethods = status.authMethods;
}
return authMethods;
})
)
}
/* private parseSSOLocation(url: string): string {
console.log('auth.service parseSSOLocation was called');
const parseUrl = decodeURIComponent(url);
// const urlTree: UrlTree = this.router.parseUrl(url);
// this.router.parseUrl(url);
// if (url.endsWith('/')) {
// url += 'login';
// } else {
// url = url.replace('/?target=http(.+)/g', 'https://hasselt-dspace.dev01.4science.it/dspace-spring-rest/shib.html');
// }
// console.log(url);
const target = `?target=${this.config.auth.target.host}${this.config.auth.target.page}`;
return parseUrl.replace(/\?target=http.+/g, target);
}*/
/**
* Create a new user