gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 224/459: random token request deleted


From: gnunet
Subject: [reclaim-ui] 224/459: random token request deleted
Date: Fri, 11 Jun 2021 23:25:16 +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 ad0debe4c5c3fe76448cafd1636c3cddc630d6c4
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Mon Jun 22 16:27:54 2020 +0200

    random token request deleted
---
 src/app/edit-attestations/edit-attestations.component.ts | 14 --------------
 src/app/reclaim.service.ts                               |  2 ++
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/app/edit-attestations/edit-attestations.component.ts 
b/src/app/edit-attestations/edit-attestations.component.ts
index 8601d0e..62a6236 100644
--- a/src/app/edit-attestations/edit-attestations.component.ts
+++ b/src/app/edit-attestations/edit-attestations.component.ts
@@ -37,20 +37,6 @@ export class EditAttestationsComponent implements OnInit {
             if (ids[i].name == p['id']) {
               this.identity = ids[i];
               this.updateAttestation();
-              let code = localStorage.getItem('attestationCode');
-              if (undefined !== code) {
-                console.log(code);
-                this.reclaimService.fixmeExchangeCode(code).subscribe(response 
=> {
-                  if (undefined !== response["id_token"]) {
-                    this.newAttestation.value = response["id_token"];
-                    this.newAttestation.type = "JWT";
-                    this.newAttestation.name = "FraunhoferAISEC";
-                    this.addAttestation();
-                    localStorage.setItem('attestationCode', null);
-                    this.router.navigate(['/edit-identity', 
this.identity.name]);
-                  }
-                });;
-              }
             }
           }
         });
diff --git a/src/app/reclaim.service.ts b/src/app/reclaim.service.ts
index 91dc643..3851cdd 100644
--- a/src/app/reclaim.service.ts
+++ b/src/app/reclaim.service.ts
@@ -69,8 +69,10 @@ export class ReclaimService {
       identity.name + '/' + attestation.id);
   }
 
+  /*Not needed
   fixmeExchangeCode(code: String) {
     let json = JSON.parse("{}");
     return 
this.http.post("http://localhost:4567/token?grant_type=authorization_code&client_id=reclaimid&redirect_uri=http://localhost:4200/index.html&scope=openid&code="+code,
 json);
   }
+  */
 }

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