EntityShareOauth.php in Entity Share 8.3
File
modules/entity_share_client/src/Plugin/KeyType/EntityShareOauth.phpView source
<?php
declare (strict_types=1);
namespace Drupal\entity_share_client\Plugin\KeyType;
use Drupal\key\Plugin\KeyType\AuthenticationMultivalueKeyType;
/**
* Key module plugin to define an oauth credentials KeyType.
*
* @KeyType(
* id = "entity_share_oauth",
* label = @Translation("Entity Share Oauth"),
* description = @Translation("A key type to store oauth credentials for the Entity Share module. Store as JSON:<br><pre>{<br>"client_id": "client_id value",<br>"client_secret": "client_secret value"<br>,<br>"authorization_path": "authorization_path value"<br>,<br>"token_path": "token_path value"<br>}</pre>"),
* group = "authentication",
* key_value = {
* "plugin" = "textarea_field"
* },
* multivalue = {
* "enabled" = true,
* "fields" = {
* "client_id" = @Translation("Client ID"),
* "client_secret" = @Translation("Client Secret"),
* "authorization_path" = @Translation("Authorization Path"),
* "token_path" = @Translation("Token Path")
* }
* }
* )
*/
class EntityShareOauth extends AuthenticationMultivalueKeyType {
}
Classes
Name | Description |
---|---|
EntityShareOauth | Key module plugin to define an oauth credentials KeyType. |