From 38ead33797311f8e1c7768bbcf8b5606e1bf0944 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 10 May 2024 14:16:16 +0300 Subject: [PATCH] release version 2.2.16 --- CHANGELOG.md | 4 ++-- src/OAuth2.php | 5 ++--- src/OpenIdConnect.php | 1 - src/clients/GitHub.php | 1 - src/clients/Oauth2Client.php | 2 +- src/clients/TwitterOAuth2.php | 1 - 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b277de3..b09a889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ Yii Framework 2 authclient extension Change Log =============================================== -2.2.16 under development ------------------------- +2.2.16 May 10, 2024 +------------------- - Enh #387: Use appropriate exception if client does not exist (eluhr) - Enh #388: Added support to configure the OAuth2 access token location in requests and added a generic OAuth2 client (rhertogh) diff --git a/src/OAuth2.php b/src/OAuth2.php index f2c0240..0148a7b 100644 --- a/src/OAuth2.php +++ b/src/OAuth2.php @@ -43,7 +43,6 @@ abstract class OAuth2 extends BaseOAuth * @since 2.2.16 */ const ACCESS_TOKEN_LOCATION_HEADER = 'header'; - /** * Apply the access token to the request body * @since 2.2.16 @@ -83,17 +82,17 @@ abstract class OAuth2 extends BaseOAuth * @see https://oauth.net/2/pkce/ */ public $enablePkce = false; - /** * @var string The location of the access token when it is applied to the request. * NOTE: According to the OAuth2 specification this should be `header` by default, - * however, for backwards compatibility the default value used here is `body`. + * however, for backwards compatibility the default value used here is `body`. * @since 2.2.16 * * @see https://datatracker.ietf.org/doc/html/rfc6749#section-7 */ public $accessTokenLocation = self::ACCESS_TOKEN_LOCATION_BODY; + /** * Composes user authorization URL. * @param array $params additional auth GET params. diff --git a/src/OpenIdConnect.php b/src/OpenIdConnect.php index e0dcf61..8c5cc2a 100644 --- a/src/OpenIdConnect.php +++ b/src/OpenIdConnect.php @@ -80,7 +80,6 @@ class OpenIdConnect extends OAuth2 * {@inheritdoc} */ public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER; - /** * @var array Predefined OpenID Connect Claims * @see https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.2 diff --git a/src/clients/GitHub.php b/src/clients/GitHub.php index 69b3609..c517ab1 100644 --- a/src/clients/GitHub.php +++ b/src/clients/GitHub.php @@ -44,7 +44,6 @@ class GitHub extends OAuth2 * {@inheritdoc} */ public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER; - /** * {@inheritdoc} */ diff --git a/src/clients/Oauth2Client.php b/src/clients/Oauth2Client.php index 8172fc5..1b3f610 100644 --- a/src/clients/Oauth2Client.php +++ b/src/clients/Oauth2Client.php @@ -39,12 +39,12 @@ */ class Oauth2Client extends OAuth2 { - /** * {@inheritdoc} */ public $accessTokenLocation = self::ACCESS_TOKEN_LOCATION_HEADER; + /** * {@inheritdoc} */ diff --git a/src/clients/TwitterOAuth2.php b/src/clients/TwitterOAuth2.php index 73de26e..b2b4379 100644 --- a/src/clients/TwitterOAuth2.php +++ b/src/clients/TwitterOAuth2.php @@ -31,7 +31,6 @@ class TwitterOAuth2 extends OAuth2 * {@inheritdoc} */ public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER; - /** * {@inheritdoc} */