static function handler::miniorange_oauth_client_validate_clientId in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8
File
- src/
handler.php, line 64
Class
Namespace
Drupal\miniorange_oauth_clientCode
static function miniorange_oauth_client_validate_clientId($client_id) {
$id_stored = \Drupal::config('miniorange_oauth_client.settings')
->get('miniorange_oauth_client_client_id');
if ($id_stored != '') {
if ($client_id != $id_stored) {
print_r('Client ID mismatch');
exit;
}
}
else {
print_r('Client ID is not configured');
exit;
}
}