You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if is it a bug or a missing feature, but at now you cannot override by config the "supportRequestState" parameter because is not catch in the configure() method
Version and provider
What version of Hybrid Auth does this relates to?
3.8.x
Is this an issue with a provider? If yes, which one?
Oauth2
Reproduction
How can we replicate this issue?
Instantiate the provider using a config like this:
In this way the value into the original class is correctly overrided by the config extarnal
The text was updated successfully, but these errors were encountered:
Fede72
changed the title
$this->supportRequestState = $this->config->get('supportRequestState');
cannot set "supportRequestState" field from external config into OAuth2 provider
Sep 23, 2022
Bug, feature or question?
I'm not sure if is it a bug or a missing feature, but at now you cannot override by config the "supportRequestState" parameter because is not catch in the configure() method
Version and provider
What version of Hybrid Auth does this relates to?
3.8.x
Is this an issue with a provider? If yes, which one?
Oauth2
Reproduction
How can we replicate this issue?
Instantiate the provider using a config like this:
'Google'=>[
'enabled'=>true,
'supportRequestState'=>false,
'callback'=>'callback url',
'keys'=>[
'key'=>'105379sfsdf82-j3h7db9jnhdqs9f7s9d8fds7t3lqu.apps.googleusercontent.com',
'secret'=>'jOsd0f8sd90f8sd09fJk']],
Solution
Into the class: "abstract class OAuth2 extends AbstractAdapter implements AdapterInterface"
add, into the configure(), method:
$this->supportRequestState = $this->config->get('supportRequestState');
In this way the value into the original class is correctly overrided by the config extarnal
The text was updated successfully, but these errors were encountered: