You are here

static function handler::miniorange_oauth_client_validate_clientId in OAuth2 Login 8

File

src/handler.php, line 133

Class

handler

Namespace

Drupal\oauth2_login

Code

static function miniorange_oauth_client_validate_clientId($client_id) {
  $id_stored = \Drupal::config('oauth2_login.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;
  }
}