You are here

public function JwtRsKeyType::defaultConfiguration in JSON Web Token Authentication (JWT) 8.0

Same name and namespace in other branches
  1. 8 src/Plugin/KeyType/JwtRsKeyType.php \Drupal\jwt\Plugin\KeyType\JwtRsKeyType::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides KeyPluginBase::defaultConfiguration

File

src/Plugin/KeyType/JwtRsKeyType.php, line 27

Class

JwtRsKeyType
Defines a key type for JWT RSA Signatures.

Namespace

Drupal\jwt\Plugin\KeyType

Code

public function defaultConfiguration() {
  return [
    'algorithm' => 'RS256',
  ];
}