Skip to content

Commit

Permalink
Add scopes to OIDC well-known configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 9, 2024
1 parent 73e5cde commit d1ea127
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/VuFind/src/VuFind/Controller/OAuth2Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ public function wellKnownConfigurationAction()
if ($url = $this->oauth2Config['Server']['documentationUrl'] ?? null) {
$configuration['service_documentation'] = $url;
}
if ($scopes = $this->oauth2Config['Scopes'] ?? []) {
$configuration['scopes_supported'] = array_keys($scopes);
}

return $this->getJsonResponse($configuration);
}
Expand Down

0 comments on commit d1ea127

Please sign in to comment.