class Oauth2Client in OAuth2 Client 8.3
Same name and namespace in other branches
- 8.2 src/Annotation/Oauth2Client.php \Drupal\oauth2_client\Annotation\Oauth2Client
Annotation definition Oauth2Client plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\oauth2_client\Annotation\Oauth2Client
Expanded class hierarchy of Oauth2Client
4 classes are annotated with Oauth2Client
- AuthCodeAccessExample in examples/
oauth2_client_example_plugins/ src/ Plugin/ Oauth2Client/ AuthCodeAccessExample.php - Auth code with access example.
- AuthCodeExample in examples/
oauth2_client_example_plugins/ src/ Plugin/ Oauth2Client/ AuthCodeExample.php - Auth code example.
- AuthCodeRedirectExample in examples/
oauth2_client_example_plugins/ src/ Plugin/ Oauth2Client/ AuthCodeRedirectExample.php - Auth Code with redirect example plugin.
- ResourceOwnerExample in examples/
oauth2_client_example_plugins/ src/ Plugin/ Oauth2Client/ ResourceOwnerExample.php - Resource Owner example plugin.
File
- src/
Annotation/ Oauth2Client.php, line 12
Namespace
Drupal\oauth2_client\AnnotationView source
class Oauth2Client extends Plugin {
/**
* The OAuth 2 plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the OAuth2 Client.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $name;
/**
* The grant type of the OAuth2 authorization.
*
* Possible values are authorization_code, client_credentials, resource_owner.
*
* @var string
*/
public $grant_type;
/**
* The authorization endpoint of the OAuth2 server.
*
* @var string
*/
public $authorization_uri;
/**
* The token endpoint of the OAuth2 server.
*
* @var string
*/
public $token_uri;
/**
* The resource endpoint of the OAuth2 Server.
*
* @var string
*/
public $resource_uri;
/**
* The Resource Owner Details endpoint.
*
* @var string
*/
public $resource_owner_uri;
/**
* The set of scopes for the provider to use by default.
*
* @var array|string|null
*/
public $scopes;
/**
* The separator used to join the scopes in the OAuth2 query string.
*
* @var string|null
*/
public $scope_separator;
/**
* A flag that may be used by Oauth2ClientPluginInterface::storeAccessToken.
*
* Implementations may conditionally display a message on successful storage.
*
* @var bool
*/
public $success_message;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Oauth2Client:: |
public | property | The authorization endpoint of the OAuth2 server. | |
Oauth2Client:: |
public | property | The grant type of the OAuth2 authorization. | |
Oauth2Client:: |
public | property | The OAuth 2 plugin ID. | |
Oauth2Client:: |
public | property | The human-readable name of the OAuth2 Client. | |
Oauth2Client:: |
public | property | The Resource Owner Details endpoint. | |
Oauth2Client:: |
public | property | The resource endpoint of the OAuth2 Server. | |
Oauth2Client:: |
public | property | The set of scopes for the provider to use by default. | |
Oauth2Client:: |
public | property | The separator used to join the scopes in the OAuth2 query string. | |
Oauth2Client:: |
public | property | A flag that may be used by Oauth2ClientPluginInterface::storeAccessToken. | |
Oauth2Client:: |
public | property | The token endpoint of the OAuth2 server. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |