- πΊπΈUnited States freelock Seattle
Looks like there's a module that provides this for the OAuth2 server module: https://www.drupal.org/project/openid_connect_autodiscovery β
- π©πͺGermany sanduhrs πͺπΊ Heidelberg, Germany, Europe
There is also on for simple_oauth module:
https://github.com/sanduhrs/drupal-openid_connect_discovery - Status changed to Needs work
about 1 year ago 3:41pm 4 October 2023 - πΊπΈUnited States freelock Seattle
Any reason not to bring this into the simple_oauth module?
- e0ipso Can Picafort
AFAICT there are two branches, but no MR yet. That would be the first step. After that it will depend on maintainer's availability & priorities.
- @sanduhrs opened merge request.
- Status changed to Needs review
about 1 year ago 8:21pm 4 October 2023 Hello,
Issuer shoudn't have a trailing slash at the END
https://www.linkedin.com/oauth/.well-known/openid-configuration
"issuer" : "https://www.linkedin.com",https://accounts.google.com/.well-known/openid-configuration
"issuer": "https://accounts.google.com",In our case
'issuer' => trim(Url::fromUri('internal:/')->setAbsolute()->toString(), '/'),
should be replaced with
'issuer' => trim(Url::fromUri('internal:/')->setAbsolute()->toString()),
Also, jwks_uri should be accessible to Anonymous users but settings _access: 'TRUE' is not enought. We need to alter some code in the Controller handle() function
if (!$this->user instanceof TokenAuthUser) {
throw new AccessDeniedHttpException('This route is only available for authenticated requests using OAuth2.');
}should be removed