mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Added success response log to auth interceptor
This commit is contained in:
@@ -131,6 +131,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
// It's a success Login/Logout response
|
||||
let authRes: HttpResponse<any>;
|
||||
if (this.isLoginResponse(response)) {
|
||||
console.log('auth.interceptor passes success login response from backend with token: ',response.headers.get('authorization') );
|
||||
// login successfully
|
||||
const newToken = response.headers.get('authorization');
|
||||
authRes = response.clone({body: this.makeAuthStatusObject(true, newToken)});
|
||||
|
@@ -30,7 +30,7 @@
|
||||
|
||||
<div >
|
||||
<br>
|
||||
<a class="btn btn-lg btn-primary btn-block mt-2" href="https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at" role="button">HardCoded Shibb</a>
|
||||
<a class="btn btn-lg btn-primary btn-block mt-2" href="https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at/" role="button">HardCoded Shibb</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user