[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.
- [reclaim-ui] 366/459: fix, (continued)
- [reclaim-ui] 366/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 333/459: Added translation using Weblate (German), gnunet, 2021/06/11
- [reclaim-ui] 305/459: renamed attestations to credentials, gnunet, 2021/06/11
- [reclaim-ui] 365/459: preserve history on authz redirect, gnunet, 2021/06/11
- [reclaim-ui] 344/459: translate claims and scopedescription, gnunet, 2021/06/11
- [reclaim-ui] 348/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 374/459: logout before login, gnunet, 2021/06/11
- [reclaim-ui] 367/459: towards better attribute import, gnunet, 2021/06/11
- [reclaim-ui] 351/459: make parser happy, gnunet, 2021/06/11
- [reclaim-ui] 321/459: I18n, gnunet, 2021/06/11
- [reclaim-ui] 354/459: redirect at api request,
gnunet <=
- [reclaim-ui] 350/459: do not escape, gnunet, 2021/06/11
- [reclaim-ui] 377/459: ignore some profile claims, gnunet, 2021/06/11
- [reclaim-ui] 384/459: move info for import, gnunet, 2021/06/11
- [reclaim-ui] 385/459: fix bugs with requested attributes, gnunet, 2021/06/11
- [reclaim-ui] 355/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 375/459: blacklist some claims, gnunet, 2021/06/11
- [reclaim-ui] 378/459: update, gnunet, 2021/06/11
- [reclaim-ui] 379/459: minor, gnunet, 2021/06/11
- [reclaim-ui] 356/459: Merge branch 'master' of gitlab.com:reclaimid/ui, gnunet, 2021/06/11
- [reclaim-ui] 335/459: add template, gnunet, 2021/06/11