Skip to content

Commit 38ead33

Browse files
committed
release version 2.2.16
1 parent 879c5f1 commit 38ead33

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Yii Framework 2 authclient extension Change Log
22
===============================================
33

4-
2.2.16 under development
5-
------------------------
4+
2.2.16 May 10, 2024
5+
-------------------
66

77
- Enh #387: Use appropriate exception if client does not exist (eluhr)
88
- Enh #388: Added support to configure the OAuth2 access token location in requests and added a generic OAuth2 client (rhertogh)

src/OAuth2.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ abstract class OAuth2 extends BaseOAuth
4343
* @since 2.2.16
4444
*/
4545
const ACCESS_TOKEN_LOCATION_HEADER = 'header';
46-
4746
/**
4847
* Apply the access token to the request body
4948
* @since 2.2.16
@@ -83,17 +82,17 @@ abstract class OAuth2 extends BaseOAuth
8382
* @see https://oauth.net/2/pkce/
8483
*/
8584
public $enablePkce = false;
86-
8785
/**
8886
* @var string The location of the access token when it is applied to the request.
8987
* NOTE: According to the OAuth2 specification this should be `header` by default,
90-
* however, for backwards compatibility the default value used here is `body`.
88+
* however, for backwards compatibility the default value used here is `body`.
9189
* @since 2.2.16
9290
*
9391
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-7
9492
*/
9593
public $accessTokenLocation = self::ACCESS_TOKEN_LOCATION_BODY;
9694

95+
9796
/**
9897
* Composes user authorization URL.
9998
* @param array $params additional auth GET params.

src/OpenIdConnect.php

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class OpenIdConnect extends OAuth2
8080
* {@inheritdoc}
8181
*/
8282
public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER;
83-
8483
/**
8584
* @var array Predefined OpenID Connect Claims
8685
* @see https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.2

src/clients/GitHub.php

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class GitHub extends OAuth2
4444
* {@inheritdoc}
4545
*/
4646
public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER;
47-
4847
/**
4948
* {@inheritdoc}
5049
*/

src/clients/Oauth2Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
*/
4040
class Oauth2Client extends OAuth2
4141
{
42-
4342
/**
4443
* {@inheritdoc}
4544
*/
4645
public $accessTokenLocation = self::ACCESS_TOKEN_LOCATION_HEADER;
4746

47+
4848
/**
4949
* {@inheritdoc}
5050
*/

src/clients/TwitterOAuth2.php

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class TwitterOAuth2 extends OAuth2
3131
* {@inheritdoc}
3232
*/
3333
public $accessTokenLocation = OAuth2::ACCESS_TOKEN_LOCATION_HEADER;
34-
3534
/**
3635
* {@inheritdoc}
3736
*/

0 commit comments

Comments
 (0)