Fixed issue preventing auth form scopes from being stored

I forgot that PHP’s POST body parsing strips the required trailing [] from
names.
This commit is contained in:
Barnaby Walters
2021-06-18 16:44:10 +02:00
parent 87bfe33443
commit d6594beebe
23 changed files with 716 additions and 678 deletions

View File

@@ -554,7 +554,7 @@ EOT
'scope' => 'create',
'redirect_uri' => 'https://app.example.com/indieauth?client_redirect_query_string_param=value'
], [
'taproot_indieauth_server_scope[]' => $grantedScopes
'taproot_indieauth_server_scope' => $grantedScopes
]);
$res = $s->handleAuthorizationEndpointRequest($req);
@@ -924,7 +924,7 @@ EOT
// Build a valid, hashed request without either PKCE parameter. This takes some faffing around
// due to the supposedly elegant immutable Request objects.
$req = $this->getApprovalRequest(true, true, null, [
'taproot_indieauth_server_scope[]' => ['profile']
'taproot_indieauth_server_scope' => ['profile']
]);
$params = $req->getQueryParams();
unset($params['code_challenge']);