4141 * @link https://github.com/web-token/jwt-framework
4242 *
4343 * @link https://openid.net/connect/
44- *
45- * e.g.'s: https://{IdentityProviderDomain}/.well-known/openid-configuration
46- *
44+ *
45+ * e.g.'s: https://{IdentityProviderDomain}/.well-known/openid-configuration
46+ *
4747 * https://accounts.google.com/.well-known/openid-configuration
4848 * https://login.microsoftonline.com/{tenant}/v2.0/.well-known/openid-configuration
49- * https://oidc.account.gov.uk/.well-known/openid-configuration
49+ * https://oidc.account.gov.uk/.well-known/openid-configuration
5050 * https://dev-kzv8xwxr.us.auth0.com/.well-known/openid-configuration
51- *
51+ *
5252 * @see OAuth2
5353 */
5454final class OpenIdConnect extends OAuth2
5555{
5656 protected string $ authUrl = '' ;
57-
57+
5858 protected ?string $ scope = 'openid ' ;
5959 /**
60- * @var string OpenID Issuer
60+ * @var string OpenID Issuer
6161 */
6262 private string $ issuerUrl = 'https://{IdentityProviderDomain} ' ;
6363 /**
@@ -119,11 +119,11 @@ final class OpenIdConnect extends OAuth2
119119
120120 /**
121121 * OpenIdConnect constructor.
122- *
122+ *
123123 * @param ClientInterface $httpClient
124124 * @param RequestFactoryInterface $requestFactory
125125 * @param StateStorageInterface $stateStorage
126- * @param Factory $factory
126+ * @param Factory $factory
127127 * @param SessionInterface $session
128128 * @param string $name
129129 * @param string $title
@@ -132,9 +132,9 @@ public function __construct(
132132 ClientInterface $ httpClient ,
133133 RequestFactoryInterface $ requestFactory ,
134134 StateStorageInterface $ stateStorage ,
135- Factory $ factory ,
136- SessionInterface $ session ,
137- CacheInterface $ cache ,
135+ Factory $ factory ,
136+ SessionInterface $ session ,
137+ CacheInterface $ cache ,
138138 string $ name ,
139139 string $ title ,
140140 ) {
@@ -290,18 +290,18 @@ public function refreshAccessToken(OAuthToken $token): OAuthToken
290290 }
291291 return parent ::refreshAccessToken ($ token );
292292 }
293-
293+
294294 #[\Override]
295295 public function getName (): string
296296 {
297297 /**
298- * Note 1: Change OpenIdConnect::class to OAuth, Google,
298+ * Note 1: Change OpenIdConnect::class to OAuth, Google,
299299 * Note 2: Keep 'oidc' unchanged
300300 * Related logic: app's config/web/di/yii-auth-client
301301 * `@var array $paramsClients['oidc']`
302302 * `$openidconnectClient = $paramsClients['oidc'];`
303- *
304- * Related logic: app's config/common/params [yiisoft/yii-auth-client] =>
303+ *
304+ * Related logic: app's config/common/params [yiisoft/yii-auth-client] =>
305305 * [
306306 * 'oidc' => [
307307 * 'class' => 'Yiisoft\Yii\AuthClient\Client\OpenIdConnect::class',
@@ -319,13 +319,13 @@ public function getTitle(): string
319319 {
320320 return 'Open Id Connect ' ;
321321 }
322-
322+
323323 #[\Override]
324324 public function getButtonClass (): string
325325 {
326326 return '' ;
327- }
328-
327+ }
328+
329329 /**
330330 * @return int[]
331331 *
0 commit comments