Skip to content

Latest commit

 

History

History
283 lines (144 loc) · 10.2 KB

CHANGELOG.md

File metadata and controls

283 lines (144 loc) · 10.2 KB

Release Notes

v2.15.1 - 2022-04-08

Changed

  • Added custom auth token header support by @CodesignDev in #354

v2.15.0 - 2022-03-28

Added

  • Add sanctum:prune-expired command for removing expired tokens. by @yuraplohov in #348

Fixed

  • Add exit codes to command by @driesvints in #351

v2.14.2 - 2022-02-22

Changed

  • Use config function by @taylorotwell in commit

v2.14.1 - 2022-02-15

Changed

  • Add helper for current app url with port (5702317)

Changed

  • Laravel 9 support (#329)

Added

  • Add an event on successful token validation (#327, b656bc1)

Changed

Changed

  • Rename CheckScopes and CheckForAnyScope to CheckAbilities and CheckForAnyAbility (#312)

Added

  • Add CheckScopes and CheckForAnyScope Middleware (#310)

Fixed

  • Revert "fix: replace hardcoded "web" guard by config('sanctum.guard')" (#309)

Fixed

  • Replace hardcoded "web" guard by config('sanctum.guard') (#307)

Fixed

  • Ignore updating last_used_at for deciding the DB connection host (#283, 2c8b9a1)
  • Fix resolving wrong app instance on Octane (#285, #286)

Changed

  • Only parse APP_URL for default stateful domains when it's set (#279)

Added

  • Sanctum::$accessTokenAuthenticationCallback callback for more granular control over access token validation (#275, 9c07921, #276)

Added

  • Add HasApiTokens contract to complement trait (#270)

Changed

Changed

  • Environment APP_URL added into the default sanctum.stateful configuration (#264)

Fixed

  • Changed Primary Key will not be used in created token's plainTextToken (#262)

Fixed

  • Avoid running string functions when domain is null (#258)

Added

  • Add multiple guard support for SPA auth (#246, f5695ae)

Fixed

  • Return json response when the request expects a json (#247)

Fixed

  • Fix user provider in sanctum guard (#225)

Changed

  • Add default nextjs address to stateful (e86d3e0)

Added

  • PHP 8 Support (#213)

Added

  • Adds origin header fallback (#204)

Changed

  • Shorten tokens (#186)

Added

  • Laravel 8 support (#184)

Fixed

  • Use the correct Str::endsWith parameter order (#163)

Fixed

Added

  • Added Multiple Provider Support (#149)

Fixed

  • Fixed Host Problem (#155)

Fixed

  • EncryptCookies middleware option in config/sanctum.php (#147)

Added

  • Add routes config option (6cf798f)

Fixed

  • 419 Exception with requests without referrer (#139)

Changed

  • More performant tokens lookup (#136)

Fixed

  • No need to specify a provider (#129)

Added

  • Allow customizing the query used to get the token (#124)

Fixed

  • Enhance supportsTokens check (#123)

Fixed

  • actingAs any ability (#120)

Added

  • Make the guard configurable (#110)

Changed

  • Renamed package to Sanctum

Fixed

  • Allow localhost ip access by default (#81)
  • Update minimum Laravel version to ^6.9 (#89)
  • Fix wildcard matching (d8de232, 9a66e76)

First stable release.

Changed

  • Allow .env configuration of stateful domains (#70)

Added

  • Added user mocking using actingAs (#51)
  • Add a CSRF middleware config variable (#54, 4f77acd, 7df454d)

Changed

  • Modify PersonalAccessToken Model to be polymorphic (#49)

v0.1.0 (2020-01-20)

Initial commit.