[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.
- [reclaim-ui] 172/459: manual merge from https://gitlab.com/voggenre/ui due to refactoring, (continued)
- [reclaim-ui] 172/459: manual merge from https://gitlab.com/voggenre/ui due to refactoring, gnunet, 2021/06/11
- [reclaim-ui] 169/459: display name correctly, gnunet, 2021/06/11
- [reclaim-ui] 194/459: fix attest parsing, gnunet, 2021/06/11
- [reclaim-ui] 174/459: fix build, gnunet, 2021/06/11
- [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 <=
- [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, 2021/06/11
- [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