Skip to content

Latest commit

 

History

History
377 lines (195 loc) · 15.1 KB

CHANGELOG.md

File metadata and controls

377 lines (195 loc) · 15.1 KB

Release Notes

v4.0.2 - 2024-04-10

v4.0.1 - 2024-03-19

v4.0.0 - 2024-03-12

v3.3.3 - 2023-12-19

v3.3.2 - 2023-11-03

  • Fix typo in config by @cosmastech in #476
  • Accept null as a parameter for Sanctum[@getAccessTokenFromRequestUsing](https://github.com/getAccessTokenFromRequestUsing)() by @cosmastech in #477

v3.3.1 - 2023-09-07

v3.3.0 - 2023-09-04

v3.2.6 - 2023-08-22

v3.2.5 - 2023-05-01

v3.2.4 - 2023-04-26

v3.2.3 - 2023-04-25

v3.2.2 - 2023-04-21

v3.2.1 - 2023-01-13

Fixed

  • Fix bearer token format validation by @krasucki in #417

v3.2.0 - 2023-01-06

Added

  • Laravel v10 Support by @driesvints in #415

v3.1.0 - 2023-01-03

Changed

  • Uses PHP Native Type Declarations 🐘 by @nunomaduro in #405

v3.0.1 - 2022-07-29

Changed

  • Update migration's primary identifier change by @suyar in #386
  • Prune expires_at tokens by @iruoy in #385

v3.0.0 - 2022-07-25

Added

  • Expiration dates for tokens by @bjhijmans in #252

Changed

Removed

  • Drop old Laravel and PHP versions by @driesvints in #378

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.