gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 200/459: webfinger


From: gnunet
Subject: [reclaim-ui] 200/459: webfinger
Date: Fri, 11 Jun 2021 23:24:52 +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 e4ec46562b4e36e0790d7a76c141cf3efbdd0750
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Mon May 25 23:41:32 2020 +0200

    webfinger
---
 src/app/config.ts                                  | 2 +-
 src/app/edit-identity/edit-identity.component.html | 2 ++
 src/app/edit-identity/edit-identity.component.ts   | 7 ++++++-
 src/app/webfinger.service.ts                       | 7 +++----
 src/assets/config.json                             | 3 ++-
 5 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/app/config.ts b/src/app/config.ts
index 7885b88..338b51b 100644
--- a/src/app/config.ts
+++ b/src/app/config.ts
@@ -1,3 +1,3 @@
 export class Config {
-    constructor(public apiUrl: string) { }
+    constructor(public apiUrl: string, public webfingerUrl: string) { }
 }
diff --git a/src/app/edit-identity/edit-identity.component.html 
b/src/app/edit-identity/edit-identity.component.html
index 80016f2..de2090f 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -73,6 +73,7 @@
               </button>
             </td>
           </tr>
+          <!-- New Attribute -->
           <tr [class.alert-danger]="isInConflict(newAttribute)">
             <td>
               <input [class.text-danger]="!attributeNameValid(newAttribute)" 
placeholder="Attribute" [(ngModel)]="newAttribute.name">
@@ -86,6 +87,7 @@
               </button>
             </td>
           </tr>
+          <!--new Attested Attribute-->
           <tr [class.alert-danger]="isAttestedInConflict(newAttested)" 
*ngIf="0 != attestations.length">
             <td>
               <input [class.text-danger]="!attestedNameValid(newAttested)" 
placeholder="Attested attribute" [(ngModel)]="newAttested.name">
diff --git a/src/app/edit-identity/edit-identity.component.ts 
b/src/app/edit-identity/edit-identity.component.ts
index 811bf20..b4fe181 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -657,7 +657,12 @@ export class EditIdentityComponent implements OnInit {
   }
 
   loginFhgAccount(){
-    window.location.href= this.idProvider + '/api/login';
+    window.location.href= this.idProvider + '/login';
+    //window.location.href = 
"http://localhost:4567/authorize?redirect_uri=http%3A%2F%2Flocalhost:4200%2Findex.html&client_id=reclaimid&response_type=code&scopes=openid";;
+  }
+
+  addAttestation(){
+    
   }
 
   setExperimental(set) {
diff --git a/src/app/webfinger.service.ts b/src/app/webfinger.service.ts
index 235f1ef..4b1d178 100644
--- a/src/app/webfinger.service.ts
+++ b/src/app/webfinger.service.ts
@@ -1,21 +1,20 @@
 import { HttpClient, HttpHeaders} from '@angular/common/http';
 import { Injectable } from '@angular/core'
 import { Observable } from 'rxjs';
+import { ConfigService } from './config.service'
 
 // https://github.com/d-koppenhagen/webfinger
 
 @Injectable()
 export class WebfingerService {
 
-    webfingerEndpoint = 'http://localhost:4567'
-
-    constructor(private http: HttpClient) {
+    constructor(private http: HttpClient, private config: ConfigService) {
     }
 
     
  
     getLink (email: string): Observable<any>{
-        return this.http.get<any>(this.webfingerEndpoint + 
'/.well-known/webfinger?resource=acct:' + email);
+        return this.http.get<any>(this.config.get().webfingerUrl + 
'/.well-known/webfinger?resource=acct:' + email);
     }
 
 }
\ No newline at end of file
diff --git a/src/assets/config.json b/src/assets/config.json
index c46d4fa..f118d56 100644
--- a/src/assets/config.json
+++ b/src/assets/config.json
@@ -1,3 +1,4 @@
 {
-    "apiUrl": "http://localhost:7776";
+    "apiUrl": "http://localhost:7776";,
+    "webfingerUrl": "http://localhost:4567";
 }

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