This extension adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist yiisoft/yii2-authclient
or add
"yiisoft/yii2-authclient": "~2.2.0"
to the require
section of your composer.json.
stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
(marty-macfly)'client_secret_basic'
in case token_endpoint_auth_methods_supported
isn't specified (rhertogh)aud
claim can either be a string or a list of strings (azmeuk)aud
nonce is passed from the authentication request to the token request (azmeuk)nonce
when refreshing the access token (rhertogh)AuthAction::$defaultClientId
and AuthAction::getClientId()
(ditibal)'id_token'
claim for getUserAttributes()
if userinfo_endpoint
is not available (rhertogh)userinfo_endpoint
response (rhertogh)statusCode
from response to init InvalidResponseException
in sendRequest
method of yii\authclient\BaseOAuth
class (vleedev)random_int()
when generating OAuth1 nonce (samdark)BaseOAuth->beforeApiRequestSend()
if BaseOAuth->autoRefreshAccessToken = true
instead of throwing "Invalid access token" exception (marty-macfly)OpenIdConnect::validateClaims()
is now protected (samdark)OAuthToken
is incorrectly instantiated if configuration array has incorrect order (rob006)AuthAction
(samdark, lab362)yii\authclient\clients\Google
as Google Plus is deprecated (alexeevdv)AuthAction
(albertborsos)scope
on defaultReturnUrl
for OAuth2
class since it was causing bad request response from Google provider (okiwan)RsaSha
was not passing $key
to openssl_pkey_get_private()
in generateSignature()
(cfhodges)OpenIdConnect
client send token as bearer auth instead of querystring parameter (lukos)authUrl
and tokenUrl
for yii\authclient\clients\LinkedIn
updated (Felli)yii\authclient\AuthAction
refactored to use yii\web\Application::$request
for request data access (klimov-paul)yii\authclient\AuthAction::$cancelCallback
allowing custom handling for authentication cancelation (terales, klimov-paul)\yii\authclient\widgets\GooglePlusButton
consider 'immediate_failed' as instant auth error (klimov-paul)yii\base\Object
changed to yii\base\BaseObject
allowing compatibility with PHP 7.2 (klimov-paul)yii\authclient\clients\TwitterOAuth2
supporting 'application-only authentication' workflow for Twitter (klimov-paul)apiVersion
at yii\authclient\clients\VKontakte
(isudakoff)yii\authclient\clients\VKontakte::initUserAttributes()
now throws verbose exception on unexpected API response instead of PHP error (klimov-paul)\yii\authclient\OAuth1::fetchRequestToken()
skips formatting for yii\httpclient\Request
(klimov-paul)\yii\authclient\OAuth1::composeSignatureBaseString()
does not take URL query string into account (klimov-paul)\yii\authclient\OpenIdConnect
supporting OpenID Connect protocol (klimov-paul)\yii\authclient\signature\RsaSha
and \yii\authclient\signature\HmacSha
supporting general 'SHAwithRSA' and 'HMAC SHA' signature methods (klimov-paul)\yii\authclient\OAuth2::authenticateUserJwt()
supporting authentication via JSON Web Token (JWT) (klimov-paul)yii\authclient\clients\Facebook
(klimov-paul)yii\authclient\clients\Facebook
(klimov-paul)yii\authclient\clients\Facebook::$autoRefreshAccessToken
is now disabled by default (klimov-paul)\yii\authclient\OAuth1::fetchRequestToken()
duplicates auth params in the request body, which may cause error on some OAuth 1.0 providers (klimov-paul)$
to jQuery
to prevent global conflicts in widget JavaScript (Ariestattoo)appsecret_proof
generation for the API requests at yii\authclient\clients\Facebook
(blackhpro, SDKiller, klimov-paul)\yii\authclient\BaseClient::createRequest()
does not apply defaultRequestOptions
and requestOptions
(klimov-paul)\yii\authclient\OAuth1::fetchRequestToken()
unable to unset current access token (klimov-paul)\yii\authclient\OAuth1::authorizationHeaderMethods
option allowing to control request methods, which require authorization header (klimov-paul)authUrl
and tokenUrl
for yii\authclient\clients\VKontakte
updated (KhristenkoYura)\yii\authclient\OAuth2::authenticateClient()
(klimov-paul)\yii\authclient\BaseOAuth::api()
(klimov-paul)\yii\authclient\OAuth1::fetchAccessToken()
(klimov-paul)\yii\authclient\widgets\AuthChoice
simplified (klimov-paul)yii2-httpclient
library for the HTTP requests (klimov-paul)\yii\authclient\OAuth2::authenticateUser()
(klimov-paul)clientLink()
and renderMainContent()
of yii\authclient\widgets\AuthChoice
reworked to return HTML instead of echo (klimov-paul)OAuth2
for preventing cross-site request forgery (klimov-paul)\yii\authclient\widgets\AuthChoice
overrides any <a>
tag click behavior between begin()
and end()
methods (klimov-paul)yii\authclient\clients\GitHub
now retrieves user email even if it is set as 'private' at GitHub account (klimov-paul)yii\authclient\BaseOAuth
now can be used without without session
application component available (klimov-paul)attributeNames
field to yii\authclient\clients\Facebook
, which allows definition of attributes list fetched from API (samdark)yii\authclient\clients\Facebook
has been increased up to 860x480 (lame07, klimov-paul)yii\authclient\OAuth1
(klimov-paul)yii\authclient\BaseOAuth::processResponse()
removed (klimov-paul)attributeNames
field to yii\authclient\clients\VKontakte
and yii\authclient\clients\LinkedIn
, which allows definition of attributes list fetched from API (klimov-paul)yii\authclient\widgets\AuthChoice
fixed to follow the Google Brand guidelines (klimov-paul)yii\authclient\clients\VKontakte
now gets attributes from access token also (klimov-paul)yii\authclient\clients\GooglePlus
added to support Google recommended auth flow (klimov-paul)yii\authclient\clients\GoogleOpenId
is now deprecated because this auth method is no longer supported by Google as of April 20, 2015 (klimov-paul)yii\authclient\clients\Twitter::$authUrl
changed to 'authenticate', allowing usage of previous logged user without request an access (kotchuprik)\yii\authclient\OAuth2::refreshAccessToken()
does not save fetched token (sebathi)\yii\authclient\AuthAction::cancelUrl
(klimov-paul)yii\authclient\widgets\AuthChoice
does not loaded if popupMode
disabled (klimov-paul)yii\authclient\BaseClient::normalizeUserAttributeMap
(zinzinday, klimov-paul)yii\authclient\widgets\AuthChoice
does not preserve initial settings while opening popup (klimov-paul)yii\authclient\BaseOAuth::api()
method (klimov-paul)yii\authclient\InvalidResponseException
added for tracking invalid remote server response (klimov-paul)
Comments