You are here

public function ClientInterface::hashClientSecret in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/ClientInterface.php \Drupal\oauth2_server\ClientInterface::hashClientSecret()

Hash a client secret for storage.

Make sure this uses the same algorithm as checkClientCredentials form the \OAuth2\StorageInterface.

Parameters

string $client_secret: The raw secret.

Return value

string The hashed secret.

1 method overrides ClientInterface::hashClientSecret()
Client::hashClientSecret in src/Entity/Client.php
Hash a client secret for storage.

File

src/ClientInterface.php, line 34

Class

ClientInterface
Defines the interface for client entities.

Namespace

Drupal\oauth2_server

Code

public function hashClientSecret($client_secret);