Update default farm client to use authorization_code refresh_token and password grants
This commit is contained in:
parent
c64247b966
commit
49040c5882
|
@ -58,7 +58,7 @@ function farm_api_post_update_enable_default_consumer_module(&$sandbox = NULL) {
|
|||
/** @var \Drupal\consumers\Entity\ConsumerInterface $farm_default */
|
||||
$farm_default = reset($consumers);
|
||||
$farm_default->set('user_id', NULL);
|
||||
$farm_default->set('grant_types', ['password']);
|
||||
$farm_default->set('grant_types', ['authorization_code', 'refresh_token', 'password']);
|
||||
$farm_default->save();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ function farm_api_default_consumer_install() {
|
|||
'client_id' => 'farm',
|
||||
'access_token_expiration' => 3600,
|
||||
'grant_types' => [
|
||||
'authorization_code',
|
||||
'refresh_token',
|
||||
'password',
|
||||
],
|
||||
'redirect' => $base_url,
|
||||
|
|
Loading…
Reference in New Issue