Skip to content
Snippets Groups Projects
Unverified Commit d58dc8af authored by Patrick's avatar Patrick Committed by GitHub
Browse files

Merge pull request #27 from Uninett/fix-trailing-slash

OpenID Connect: Fix non-canonical URL used for discovery endpoint
parents 98949b37 7cf584f7
Branches
Tags
No related merge requests found
......@@ -110,7 +110,7 @@ class OpenIDConnectProvider extends AbstractProvider
return $this->openIdConfiguration;
}
$config = $this->getParsedResponse($this->getRequest('GET', $this->issuer . self::CONFIGURATION_PATH));
$config = $this->getParsedResponse($this->getRequest('GET', rtrim($this->issuer, '/') . self::CONFIGURATION_PATH));
$requiredEndPoints = [ "authorization_endpoint", "token_endpoint", "jwks_uri", "issuer", "userinfo_endpoint" ];
foreach ($requiredEndPoints as $key) {
if (!array_key_exists($key, $config)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment