You are here

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

handler

Namespace

Drupal\miniorange_oauth_client

Code

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;
  }
}