Tempest version
3.9.0
PHP version
8.5
Operating system
Linux
Description
Currently the scopeSeperator option of the \League\OAuth2\Client\Provider\GenericProvider is not configurable using \Tempest\Auth\OAuth\Config\GenericOAuthConfig.
To support OIDC login correctly (e.g. providing additional scope data) the separator for scopes has to be a space %20 instead of a %2C.
Having the following change fixes this:
public function createProvider(): AbstractProvider
{
return new GenericProvider([
'clientId' => $this->clientId,
'clientSecret' => $this->clientSecret,
'urlAuthorize' => $this->urlAuthorize,
'urlAccessToken' => $this->urlAccessToken,
'urlResourceOwnerDetails' => $this->urlResourceOwnerDetails,
'scopeSeparator' => ' ',
]);
}
I don't know if the wanted fix is, to extend GenericOAuthConfig by adding scopeSeparator or a dedicated OIDC OAuth Config is wanted?
Tempest version
3.9.0
PHP version
8.5
Operating system
Linux
Description
Currently the
scopeSeperatoroption of the\League\OAuth2\Client\Provider\GenericProvideris not configurable using\Tempest\Auth\OAuth\Config\GenericOAuthConfig.To support OIDC login correctly (e.g. providing additional scope data) the separator for scopes has to be a space
%20instead of a%2C.Having the following change fixes this:
I don't know if the wanted fix is, to extend
GenericOAuthConfigby addingscopeSeparatoror a dedicated OIDC OAuth Config is wanted?