protected function getDefaultGrantTypes() { $grantTypes = parent::getDefaultGrantTypes(); $aud = $this->getJwtAudience(); if (!empty($aud)) { $jwtBearer = new bdApi_OAuth2_GrantType_JwtBearer(reset($this->storages), $aud); $grantTypes[$jwtBearer->getQuerystringIdentifier()] = $jwtBearer; } return $grantTypes; }