aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/identity-list/identity-list.component.ts16
-rw-r--r--src/locales/en/messages.json2
2 files changed, 15 insertions, 3 deletions
diff --git a/src/app/identity-list/identity-list.component.ts b/src/app/identity-list/identity-list.component.ts
index 909b5d6..aada8b2 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -1,5 +1,5 @@
1import { Component, OnInit } from '@angular/core'; 1import { Component, OnInit } from '@angular/core';
2import { ActivatedRoute, Router } from '@angular/router'; 2import { ActivatedRoute, Router, UrlHandlingStrategy } from '@angular/router';
3 3
4import { Attribute } from '../attribute'; 4import { Attribute } from '../attribute';
5import { Credential } from '../credential'; 5import { Credential } from '../credential';
@@ -71,7 +71,7 @@ export class IdentityListComponent implements OnInit {
71 var user = localStorage.getItem('userForCredential'); 71 var user = localStorage.getItem('userForCredential');
72 this.router.navigate(['/edit-credentials', user]); 72 this.router.navigate(['/edit-credentials', user]);
73 } 73 }
74 if (!this.oidcService.inOpenIdFlow()) { 74 if (!this.oidcService.inOpenIdFlow() && undefined == this.route.snapshot.queryParams["authz_request"]) {
75 this.oidcService.parseRouteParams(this.route.snapshot.queryParams); 75 this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
76 if (this.oidcService.inOpenIdFlow()) { 76 if (this.oidcService.inOpenIdFlow()) {
77 this.router.navigate(['/authorization-request']); 77 this.router.navigate(['/authorization-request']);
@@ -379,11 +379,23 @@ export class IdentityListComponent implements OnInit {
379 this.closeModal('GnunetInfo'); 379 this.closeModal('GnunetInfo');
380 } 380 }
381 this.connected = true; 381 this.connected = true;
382
383 if(undefined !== this.route.snapshot.queryParams["authz_request"]){
384 var url = "http://localhost:7776" + this.route.snapshot.queryParams["pathname"] + "?";
385 var params = this.route.snapshot.queryParams;
386 Object.keys(params).forEach(param =>{
387 if (param != "authz_request" && param != "pathname"){
388 url = url + param + "=" + params[param] + "&";
389 }
390 })
391 window.location.href = url;
392 }
382 }, 393 },
383 error => { 394 error => {
384 console.log(error); 395 console.log(error);
385 this.openModal('GnunetInfo'); 396 this.openModal('GnunetInfo');
386 this.connected = false; 397 this.connected = false;
398 setTimeout(() => this.updateIdentities(), 20000);
387 }); 399 });
388 } 400 }
389 401
diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json
index f345eb8..49cd933 100644
--- a/src/locales/en/messages.json
+++ b/src/locales/en/messages.json
@@ -5,7 +5,7 @@
5 "Revoke": "Revoke", 5 "Revoke": "Revoke",
6 "Cancel": "Cancel", 6 "Cancel": "Cancel",
7 "Back": "Back", 7 "Back": "Back",
8 "SaveAndBack": "SaveAndBack", 8 "SaveAndBack": "Save and back",
9 "Delete": "Delete", 9 "Delete": "Delete",
10 "Save": "Save", 10 "Save": "Save",
11 "Note": "Note: ", 11 "Note": "Note: ",