[Library|Trunk]
Display claims: avoid loop when user is logged in but the service returns 403 (e.g different AAI instance) git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59444 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
ca54df782c
commit
85a1688dc0
|
@ -142,7 +142,7 @@
|
||||||
An Error occured.
|
An Error occured.
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="showForbiddenMessage " class="uk-alert uk-alert-danger ">
|
<div *ngIf="showForbiddenMessage " class="uk-alert uk-alert-danger ">
|
||||||
You are not allowed to access this page.
|
You are not authorized to view the results.
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="userValidMessage.length > 0 " class="uk-alert uk-alert-danger ">
|
<div *ngIf="userValidMessage.length > 0 " class="uk-alert uk-alert-danger ">
|
||||||
User session is not valid. Please login again.
|
User session is not valid. Please login again.
|
||||||
|
|
|
@ -262,12 +262,15 @@ export class DisplayClaimsComponent {
|
||||||
if (error.code && error.code == 403) {
|
if (error.code && error.code == 403) {
|
||||||
this.showErrorMessage = false;
|
this.showErrorMessage = false;
|
||||||
this.showForbiddenMessage = true;
|
this.showForbiddenMessage = true;
|
||||||
this._router.navigate(['/user-info'], {
|
if(!Session.isLoggedIn()) {
|
||||||
queryParams: {
|
|
||||||
"errorCode": LoginErrorCodes.NOT_VALID,
|
this._router.navigate(['/user-info'], {
|
||||||
"redirectUrl": this._router.url
|
queryParams: {
|
||||||
}
|
"errorCode": LoginErrorCodes.NOT_VALID,
|
||||||
});
|
"redirectUrl": this._router.url
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue