Releases: thephpleague/oauth2-server
Releases · thephpleague/oauth2-server
8.0.0
Added
- Flag,
requireCodeChallengeForPublicClients, used to reject public clients that do not provide a code challenge for the Auth Code Grant; use AuthCodeGrant::disableRequireCodeCallengeForPublicClients() to turn off this requirement (PR #938) - Public clients can now use the Auth Code Grant (PR #938)
isConfidentialgetter added toClientEntityto identify type of client (PR #938)- Function
validateClient()added to validate clients which was previously performed by thegetClientEntity()function (PR #938) - Add a new function to the AbstractGrant class called
getClientEntityOrFail(). This is a wrapper around thegetClientEntity()function that ensures we emit and throw an exception if the repo doesn't return a client entity. (PR #1010)
Changed
- Replace
convertToJWT()interface with a more generic__toString()to improve extensibility; AccessTokenEntityInterface now requiressetPrivateKey(CryptKey $privateKey)so__toString()has everything it needs to work (PR #874) - The
invalidClient()function accepts a PSR-7 compliant$serverRequestargument to avoid accessing the$_SERVERglobal variable and improve testing (PR #899) issueAccessToken()in the Abstract Grant no longer sets access token client, user ID or scopes. These values should already have been set when callinggetNewToken()(PR #919)- No longer need to enable PKCE with
enableCodeExchangeProofflag. Any client sending a code challenge will initiate PKCE checks. (PR #938) - Function
getClientEntity()no longer performs client validation (PR #938) - Password Grant now returns an invalid_grant error instead of invalid_credentials if a user cannot be validated (PR #967)
- Use
DateTimeImmutable()instead ofDateTime(),time()instead of(new DateTime())->getTimeStamp(), andDateTime::getTimeStamp()instead ofDateTime::format('U')(PR #963)
Removed
7.4.0
7.3.3
7.3.2
7.3.1
7.3.0
Changed
- Moved the
finalizeScopes()call fromvalidateAuthorizationRequestmethod to thecompleteAuthorizationRequestmethod so it is called just before the access token is issued (PR #923)
Added
- Added a ScopeTrait to provide an implementation for jsonSerialize (PR #952)
- Ability to nest exceptions (PR #965)
Fixed
- Fix issue where AuthorizationServer is not stateless as ResponseType could store state of a previous request (PR #960)
7.2.0
Changed
- Added new
validateRedirectUrimethod AbstractGrant to remove three instances of code duplication (PR #912) - Allow 640 as a crypt key file permission (PR #917)
Added
- Function
hasRedirect()added toOAuthServerException(PR #703)
Fixed
- Catch and handle
BadMethodCallExceptionfrom theverify()method of the JWT token in thevalidateAuthorizationmethod (PR #904)