From 05004fd89f45d6e9bc4be81a34d340b1fb522196 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 7 Aug 2020 09:25:53 +0200 Subject: -also allow non-standard scopes as claims --- src/reclaim/oidc_helper.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/reclaim/oidc_helper.c') diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c index d0345108e..eab12db33 100644 --- a/src/reclaim/oidc_helper.c +++ b/src/reclaim/oidc_helper.c @@ -769,7 +769,7 @@ OIDC_access_token_parse (const char *token, /** * Checks if a claim is implicitly requested through standard - * scope(s) + * scope(s) or explicitly through non-standard scope. * * @param scopes the scopes which have been requested * @param attr the attribute name to check @@ -832,6 +832,11 @@ OIDC_check_scopes_for_claim_request (const char*scopes, } } + } else if (0 == strcmp (attr, scope_variable)) + { + /** attribute matches requested scope **/ + GNUNET_free (scope_variables); + return GNUNET_YES; } scope_variable = strtok (NULL, delimiter); } -- cgit v1.2.3