class Oauth2Client in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 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
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 client_id of the OAuth2 server.
*
* @var string
*/
public $client_id;
/**
* The grant type of the OAuth2 authorization.
*
* Possible values:
* - authorization_code
* - client_credentials
* - resource_owner - Note that the 'username' and 'password' attributes are
* required for this type.
*
* @var string
*/
public $grant_type;
/**
* The client_secret of the OAuth2 server.
*
* @var string
*/
public $client_secret;
/**
* 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;
/**
* The username of the account being authenticated.
*
* Note: Used only when the grant_type is set to resource_owner.
*
* @var string
*/
public $username;
/**
* The password of the account being authenticated.
*
* Note: Used only when the grant_type is set to resource_owner.
*
* @var string
*/
public $password;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Oauth2Client:: |
public | property | The authorization endpoint of the OAuth2 server. | |
Oauth2Client:: |
public | property | The client_id of the OAuth2 server. | |
Oauth2Client:: |
public | property | The client_secret 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 password of the account being authenticated. | |
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 | The token endpoint of the OAuth2 server. | |
Oauth2Client:: |
public | property | The username of the account being authenticated. | |
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 |