[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 206/459: attestation name added
From: |
gnunet |
Subject: |
[reclaim-ui] 206/459: attestation name added |
Date: |
Fri, 11 Jun 2021 23:24:58 +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 5f1b7134420c33e85bb1cf64f1bb56e97619f7f3
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Tue Jun 2 14:41:47 2020 +0200
attestation name added
---
src/app/edit-identity/edit-identity.component.ts | 15 ++++++++++++---
src/app/oauth-helper.service.ts | 2 +-
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.ts
b/src/app/edit-identity/edit-identity.component.ts
index c29ce4a..5ee56fe 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -640,7 +640,6 @@ export class EditIdentityComponent implements OnInit {
}
console.log (error);
});
- //window.location.href =
"http://localhost:4567/authorize?redirect_uri=http%3A%2F%2Flocalhost:4200%2Findex.html&client_id=reclaimid&response_type=code&scopes=openid";
}
isValidEmailforDiscovery(){
@@ -666,7 +665,7 @@ export class EditIdentityComponent implements OnInit {
this.oauthService.configure(authCodeFlowConfig);
this.oauthService.loadDiscoveryDocumentAndLogin();
this.getId();
- //window.location.href =
"http://localhost:4567/authorize?redirect_uri=http%3A%2F%2Flocalhost:4200%2Findex.html&client_id=reclaimid&response_type=code&scopes=openid";
+ this.addAttestation();
}
getId (): any{
@@ -674,7 +673,17 @@ export class EditIdentityComponent implements OnInit {
}
addAttestation(){
-
+ const newAttestation = new Attestation (this.getId().name,
this.getId().id, this.getId().type, 'openID', this.idProvider,
this.getAttestationExpiration(), []);
+ this.reclaimService.addAttestation(this.identity,
newAttestation).subscribe(res => {
+ console.log(res);
+ },
+ err => {
+ console.log(err);
+ });
+ }
+
+ getAttestationExpiration(){
+ return this.oauthService.getIdTokenExpiration()
}
setExperimental(set) {
diff --git a/src/app/oauth-helper.service.ts b/src/app/oauth-helper.service.ts
index 5f54b3a..68c64fd 100644
--- a/src/app/oauth-helper.service.ts
+++ b/src/app/oauth-helper.service.ts
@@ -12,7 +12,7 @@ export class OauthHelperService {
issuer: localStorage.getItem('idProvider'),
// URL of the SPA to redirect the user to after login
- redirectUri: window.location.origin,
+ redirectUri: window.location.href,
// The SPA's id. The SPA is registerd with this id at the auth-server
// clientId: 'server.code',
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 177/459: fix getter, (continued)
- [reclaim-ui] 177/459: fix getter, gnunet, 2021/06/11
- [reclaim-ui] 168/459: actually initiate verify, gnunet, 2021/06/11
- [reclaim-ui] 197/459: link to fhg account, gnunet, 2021/06/11
- [reclaim-ui] 167/459: more refactoring and cleanup, gnunet, 2021/06/11
- [reclaim-ui] 175/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 181/459: actually fix reference name display, gnunet, 2021/06/11
- [reclaim-ui] 200/459: webfinger, gnunet, 2021/06/11
- [reclaim-ui] 170/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 205/459: login via omejdn:api works, gnunet, 2021/06/11
- [reclaim-ui] 185/459: minor fixes, gnunet, 2021/06/11
- [reclaim-ui] 206/459: attestation name added,
gnunet <=
- [reclaim-ui] 186/459: update to new API and structure, gnunet, 2021/06/11
- [reclaim-ui] 208/459: store idProvider/Attestation(not working), gnunet, 2021/06/11
- [reclaim-ui] 207/459: improved emailNotFoundAlert, gnunet, 2021/06/11
- [reclaim-ui] 193/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 189/459: experimental switch added, gnunet, 2021/06/11
- [reclaim-ui] 191/459: update to angular9; minor bugfixes, gnunet, 2021/06/11
- [reclaim-ui] 187/459: add issuer display, gnunet, 2021/06/11
- [reclaim-ui] 216/459: idProvider stored in localStorage and loaded to authorization interface, gnunet, 2021/06/11
- [reclaim-ui] 204/459: merge yarn.lock, gnunet, 2021/06/11
- [reclaim-ui] 192/459: minor fixes, gnunet, 2021/06/11