gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 157/459: followup fix


From: gnunet
Subject: [reclaim-ui] 157/459: followup fix
Date: Fri, 11 Jun 2021 23:24:09 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit d85d797d161bfc92f1c43ac4aeee40f71001847b
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Tue Dec 10 17:57:01 2019 +0100

    followup fix
---
 src/app/identity-list/identity-list.component.ts | 4 +++-
 src/app/open-id.service.ts                       | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index dc6f98b..17f1da4 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -53,7 +53,9 @@ export class IdentityListComponent implements OnInit {
     this.clientName = '-';
     this.connected = false;
     this.modalOpened = false;
-    this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
+    if (!this.oidcService.inOpenIdFlow()) {
+      this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
+    }
     this.getClientName();
     this.identityNameMapper = {};
     this.updateIdentities();
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index 8be2879..0db9ee1 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -32,6 +32,7 @@ export class OpenIdService {
   }
 
   authorize(): any {
+    this.inOidcFlow = false;
     window.location.href = this.config.get().apiUrl + 
'/openid/authorize?client_id=' + this.params['client_id'] +
     '&redirect_uri=' + this.params['redirect_uri'] +
     '&response_type=' + this.params['response_type'] +
@@ -51,7 +52,7 @@ export class OpenIdService {
   }
 
   inOpenIdFlow(): any {
-    return this.params['redirect_uri'] !== undefined;
+    return this.inOidcFlow;
   }
 
   getClientId(): any {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]