Oauth2ClientKey.php in OAuth2 Client 8.3
Namespace
Drupal\oauth2_client\Plugin\KeyTypeFile
src/Plugin/KeyType/Oauth2ClientKey.phpView source
<?php
namespace Drupal\oauth2_client\Plugin\KeyType;
use Drupal\key\Plugin\KeyType\AuthenticationMultivalueKeyType;
/**
* Key module plugin to define an oauth credentials KeyType.
*
* @KeyType(
* id = "oauth2_client",
* label = @Translation("Oauth2 Client"),
* description = @Translation("A key type to store oauth credentials for the Oauth2 Client module. Store as JSON:<br><pre>{<br>"client_id": "client_id value",<br>"client_secret": "client_secret value"<br>}</pre>"),
* group = "authentication",
* key_value = {
* "plugin" = "textarea_field"
* },
* multivalue = {
* "enabled" = true,
* "fields" = {
* "client_id" = @Translation("Client ID"),
* "client_secret" = @Translation("Client Secret"),
* }
* }
* )
*/
class Oauth2ClientKey extends AuthenticationMultivalueKeyType {
}
Classes
Name | Description |
---|---|
Oauth2ClientKey | Key module plugin to define an oauth credentials KeyType. |