gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 227/459: redirect now to edit-attestations/clientname shoul


From: gnunet
Subject: [reclaim-ui] 227/459: redirect now to edit-attestations/clientname should be edit-identity/clientname #20
Date: Fri, 11 Jun 2021 23:25:19 +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 b615c3dee1b5c7aa8607114db7c6dfe49669eb5d
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Mon Jun 29 16:15:25 2020 +0200

    redirect now to edit-attestations/clientname should be 
edit-identity/clientname #20
---
 src/app/attestation.service.ts | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/app/attestation.service.ts b/src/app/attestation.service.ts
index ec8b268..317adda 100644
--- a/src/app/attestation.service.ts
+++ b/src/app/attestation.service.ts
@@ -1,6 +1,6 @@
 import { HttpClient, HttpHeaders} from '@angular/common/http';
 import { Injectable } from '@angular/core'
-import { Observable } from 'rxjs';
+import { Observable} from 'rxjs';
 import { ConfigService } from './config.service'
 import { AuthConfig } from 'angular-oauth2-oidc';
 import { IdProvider } from './idProvider';
@@ -16,12 +16,20 @@ export class AttestationService {
     }
 
     getOauthConfig(idProvider: IdProvider){
+        let redirectUri;
+        try {
+            redirectUri = browser.runtime.getURL('index.html');
+        } catch (error) {
+            console.log(error);
+            redirectUri = window.location.href;
+        }
+
         const authCodeFlowConfig: AuthConfig = {
           // Url of the Identity Provider
           issuer: idProvider.url,
       
           // URL of the SPA to redirect the user to after login
-          redirectUri: window.location.href,
+          redirectUri: redirectUri,
 
           postLogoutRedirectUri: window.location.href,
 

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