gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 354/459: redirect at api request


From: gnunet
Subject: [reclaim-ui] 354/459: redirect at api request
Date: Fri, 11 Jun 2021 23:27:26 +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 4e807e24d99ba0ae0a11e27d4b6edf308c2e6dff
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Mon Oct 26 15:30:02 2020 +0100

    redirect at api request
---
 src/app/identity-list/identity-list.component.ts | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index b36f10d..aada8b2 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -1,5 +1,5 @@
 import { Component, OnInit } from '@angular/core';
-import { ActivatedRoute, Router } from '@angular/router';
+import { ActivatedRoute, Router, UrlHandlingStrategy } from '@angular/router';
 
 import { Attribute } from '../attribute';
 import { Credential } from '../credential';
@@ -71,7 +71,7 @@ export class IdentityListComponent implements OnInit {
       var user = localStorage.getItem('userForCredential');
       this.router.navigate(['/edit-credentials', user]);
     }
-    if (!this.oidcService.inOpenIdFlow()) {
+    if (!this.oidcService.inOpenIdFlow() && undefined == 
this.route.snapshot.queryParams["authz_request"]) {
       this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
       if (this.oidcService.inOpenIdFlow()) {
         this.router.navigate(['/authorization-request']);
@@ -381,7 +381,14 @@ export class IdentityListComponent implements OnInit {
       this.connected = true;
 
       if(undefined !== this.route.snapshot.queryParams["authz_request"]){
-        return {"redirectUrl": "http://localhost:7776"; + 
this.route.snapshot.queryParams["pathname"] + 
this.route.snapshot.queryParams["search"]};
+        var url = "http://localhost:7776"; + 
this.route.snapshot.queryParams["pathname"] + "?";
+        var params = this.route.snapshot.queryParams;
+        Object.keys(params).forEach(param =>{
+          if (param != "authz_request" && param != "pathname"){
+            url = url + param + "=" + params[param] + "&";
+          }
+        })
+        window.location.href = url;
       }
     },
       error => {

-- 
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]