gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 264/459: fix phone number claim name; pass claims parameter


From: gnunet
Subject: [reclaim-ui] 264/459: fix phone number claim name; pass claims parameter
Date: Fri, 11 Jun 2021 23:25:56 +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 744c90aa5abe6269ddeb70a3d6b951200e1bba91
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Thu Aug 6 09:16:26 2020 +0200

    fix phone number claim name; pass claims parameter
---
 src/app/open-id.service.ts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index 6264783..b1cfff9 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -17,7 +17,7 @@ export class OpenIdService {
   scopesDescriptions = {"profile": "User profile access such as email, 
(nick)name, gender and birthdate.",
                         "email": "Your email information.",
                         "address": "Your physical address information.",
-                        "phone": "Your phone number."};
+                        "phone_number": "Your phone number."};
 
   constructor(private http: HttpClient,
     private config: ConfigService,
@@ -74,9 +74,9 @@ export class OpenIdService {
     redirectUri += '&redirect_uri=' + this.params['redirect_uri'];
     redirectUri += '&response_type=' + this.params['response_type'];
     redirectUri += '&scope=' + this.params['scope'];
-    if (this.referenceString !== "")
+    if (this.params['claims'] !== undefined)
     {
-      redirectUri += " " + this.referenceString;
+      redirectUri += "&claims" + this.params['claims'];
     }
     if (this.params['state'] !== undefined)
     {
@@ -228,7 +228,7 @@ export class OpenIdService {
   }
 
   getStandardPhoneClaims(): Object {
-    return {"phone": "Phone number"};
+    return {"phone_number": "Phone number"};
   }
 
   getStandardAddressClaims(): Object {
@@ -255,7 +255,7 @@ export class OpenIdService {
     if (scopes.includes("address")) {
       result = result.concat(Object.keys(this.getStandardAddressClaims()));
     }
-    if (scopes.includes("phone")) {
+    if (scopes.includes("phone_number")) {
       result = result.concat(Object.keys(this.getStandardPhoneClaims()));
     }
     result = result.concat(this.getRequestedClaimNames());

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