mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +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
|
// It's a success Login/Logout response
|
||||||
let authRes: HttpResponse<any>;
|
let authRes: HttpResponse<any>;
|
||||||
if (this.isLoginResponse(response)) {
|
if (this.isLoginResponse(response)) {
|
||||||
|
console.log('auth.interceptor passes success login response from backend with token: ',response.headers.get('authorization') );
|
||||||
// login successfully
|
// login successfully
|
||||||
const newToken = response.headers.get('authorization');
|
const newToken = response.headers.get('authorization');
|
||||||
authRes = response.clone({body: this.makeAuthStatusObject(true, newToken)});
|
authRes = response.clone({body: this.makeAuthStatusObject(true, newToken)});
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<div >
|
<div >
|
||||||
<br>
|
<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>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user