Skip to content

Commit

Permalink
release version 2.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed May 10, 2024
1 parent 879c5f1 commit 38ead33
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 2 additions & 3 deletions src/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/OpenIdConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/clients/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class GitHub extends OAuth2
* {@inheritdoc}
*/
public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER;

/**
* {@inheritdoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/clients/Oauth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
*/
class Oauth2Client extends OAuth2
{

/**
* {@inheritdoc}
*/
public $accessTokenLocation = self::ACCESS_TOKEN_LOCATION_HEADER;


/**
* {@inheritdoc}
*/
Expand Down
1 change: 0 additions & 1 deletion src/clients/TwitterOAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class TwitterOAuth2 extends OAuth2
* {@inheritdoc}
*/
public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 38ead33

Please sign in to comment.