|
1 | 1 | # Release Notes |
2 | 2 |
|
3 | | -## [Unreleased](https://github.com/laravel/sanctum/compare/v2.14.0...2.x) |
| 3 | +## [Unreleased](https://github.com/laravel/sanctum/compare/v2.14.1...2.x) |
4 | 4 |
|
| 5 | +## [v2.14.1](https://github.com/laravel/sanctum/compare/v2.14.0...v2.14.1) - 2022-02-15 |
| 6 | + |
| 7 | +### Changed |
| 8 | + |
| 9 | +- Add helper for current app url with port ([5702317](https://github.com/laravel/sanctum/commit/57023176c5a77d5108cee2fcadceabda00af814b)) |
5 | 10 |
|
6 | 11 | ## [v2.14.0 (2022-01-12)](https://github.com/laravel/sanctum/compare/v2.13.0...v2.14.0) |
7 | 12 |
|
8 | 13 | ### Changed |
9 | | -- Laravel 9 support ([#329](https://github.com/laravel/sanctum/pull/329)) |
10 | 14 |
|
| 15 | +- Laravel 9 support ([#329](https://github.com/laravel/sanctum/pull/329)) |
11 | 16 |
|
12 | 17 | ## [v2.13.0 (2021-12-14)](https://github.com/laravel/sanctum/compare/v2.12.2...v2.13.0) |
13 | 18 |
|
14 | 19 | ### Added |
15 | | -- Add an event on successful token validation ([#327](https://github.com/laravel/sanctum/pull/327), [b656bc1](https://github.com/laravel/sanctum/commit/b656bc1cc0010d0ac00f00dbc88b02a8940f8860)) |
16 | 20 |
|
| 21 | +- Add an event on successful token validation ([#327](https://github.com/laravel/sanctum/pull/327), [b656bc1](https://github.com/laravel/sanctum/commit/b656bc1cc0010d0ac00f00dbc88b02a8940f8860)) |
17 | 22 |
|
18 | 23 | ## [v2.12.2 (2021-11-16)](https://github.com/laravel/sanctum/compare/v2.12.1...v2.12.2) |
19 | 24 |
|
20 | 25 | ### Changed |
21 | | -- Add guard to config ([f811d5c](https://github.com/laravel/sanctum/commit/f811d5c1e8123acf2626aa4a774a890efcc39d3f)) |
22 | 26 |
|
| 27 | +- Add guard to config ([f811d5c](https://github.com/laravel/sanctum/commit/f811d5c1e8123acf2626aa4a774a890efcc39d3f)) |
23 | 28 |
|
24 | 29 | ## [v2.12.1 (2021-10-26)](https://github.com/laravel/sanctum/compare/v2.12.0...v2.12.1) |
25 | 30 |
|
26 | 31 | ### Changed |
27 | | -- Rename `CheckScopes` and `CheckForAnyScope` to `CheckAbilities` and `CheckForAnyAbility` ([#312](https://github.com/laravel/sanctum/pull/312)) |
28 | 32 |
|
| 33 | +- Rename `CheckScopes` and `CheckForAnyScope` to `CheckAbilities` and `CheckForAnyAbility` ([#312](https://github.com/laravel/sanctum/pull/312)) |
29 | 34 |
|
30 | 35 | ## [v2.12.0 (2021-10-19)](https://github.com/laravel/sanctum/compare/v2.11.4...v2.12.0) |
31 | 36 |
|
32 | 37 | ### Added |
33 | | -- Add CheckScopes and CheckForAnyScope Middleware ([#310](https://github.com/laravel/sanctum/pull/310)) |
34 | 38 |
|
| 39 | +- Add CheckScopes and CheckForAnyScope Middleware ([#310](https://github.com/laravel/sanctum/pull/310)) |
35 | 40 |
|
36 | 41 | ## [v2.11.4 (2021-10-13)](https://github.com/laravel/sanctum/compare/v2.11.3...v2.11.4) |
37 | 42 |
|
38 | 43 | ### Fixed |
39 | | -- Revert "fix: replace hardcoded "web" guard by `config('sanctum.guard')`" ([#309](https://github.com/laravel/sanctum/pull/309)) |
40 | 44 |
|
| 45 | +- Revert "fix: replace hardcoded "web" guard by `config('sanctum.guard')`" ([#309](https://github.com/laravel/sanctum/pull/309)) |
41 | 46 |
|
42 | 47 | ## [v2.11.3 (2021-10-12)](https://github.com/laravel/sanctum/compare/v2.11.2...v2.11.3) |
43 | 48 |
|
44 | 49 | ### Fixed |
45 | | -- Replace hardcoded "web" guard by `config('sanctum.guard')` ([#307](https://github.com/laravel/sanctum/pull/307)) |
46 | 50 |
|
| 51 | +- Replace hardcoded "web" guard by `config('sanctum.guard')` ([#307](https://github.com/laravel/sanctum/pull/307)) |
47 | 52 |
|
48 | 53 | ## [v2.11.2 (2021-06-15)](https://github.com/laravel/sanctum/compare/v2.11.1...v2.11.2) |
49 | 54 |
|
50 | 55 | ### Fixed |
| 56 | + |
51 | 57 | - Ignore updating `last_used_at` for deciding the DB connection host ([#283](https://github.com/laravel/sanctum/pull/283), [2c8b9a1](https://github.com/laravel/sanctum/commit/2c8b9a1071b87c1911ba99448d1173dd75e97c9f)) |
52 | 58 | - Fix resolving wrong app instance on Octane ([#285](https://github.com/laravel/sanctum/pull/285), [#286](https://github.com/laravel/sanctum/pull/286)) |
53 | 59 |
|
54 | | - |
55 | 60 | ## [v2.11.1 (2021-05-25)](https://github.com/laravel/sanctum/compare/v2.11.0...v2.11.1) |
56 | 61 |
|
57 | 62 | ### Changed |
58 | | -- Only parse APP_URL for default stateful domains when it's set ([#279](https://github.com/laravel/sanctum/pull/279)) |
59 | 63 |
|
| 64 | +- Only parse APP_URL for default stateful domains when it's set ([#279](https://github.com/laravel/sanctum/pull/279)) |
60 | 65 |
|
61 | 66 | ## [v2.11.0 (2021-05-11)](https://github.com/laravel/sanctum/compare/v2.10.0...v2.11.0) |
62 | 67 |
|
63 | 68 | ### Added |
64 | | -- `Sanctum::$accessTokenAuthenticationCallback` callback for more granular control over access token validation ([#275](https://github.com/laravel/sanctum/pull/275), [9c07921](https://github.com/laravel/sanctum/commit/9c079213d3e748fa0d784a17b6ef2f5cde92a286), [#276](https://github.com/laravel/sanctum/pull/276)) |
65 | 69 |
|
| 70 | +- `Sanctum::$accessTokenAuthenticationCallback` callback for more granular control over access token validation ([#275](https://github.com/laravel/sanctum/pull/275), [9c07921](https://github.com/laravel/sanctum/commit/9c079213d3e748fa0d784a17b6ef2f5cde92a286), [#276](https://github.com/laravel/sanctum/pull/276)) |
66 | 71 |
|
67 | 72 | ## [v2.10.0 (2021-04-20)](https://github.com/laravel/sanctum/compare/v2.9.4...v2.10.0) |
68 | 73 |
|
69 | 74 | ### Added |
70 | | -- Add HasApiTokens contract to complement trait ([#270](https://github.com/laravel/sanctum/pull/270)) |
71 | 75 |
|
| 76 | +- Add HasApiTokens contract to complement trait ([#270](https://github.com/laravel/sanctum/pull/270)) |
72 | 77 |
|
73 | 78 | ## [v2.9.4 (2021-04-06)](https://github.com/laravel/sanctum/compare/v2.9.3...v2.9.4) |
74 | 79 |
|
75 | 80 | ### Changed |
76 | | -- Use app helper ([60f2809](https://github.com/laravel/sanctum/commit/60f280995c3f878de0e6422eaacd1c30d37d263e)) |
77 | 81 |
|
| 82 | +- Use app helper ([60f2809](https://github.com/laravel/sanctum/commit/60f280995c3f878de0e6422eaacd1c30d37d263e)) |
78 | 83 |
|
79 | 84 | ## [v2.9.3 (2021-03-30)](https://github.com/laravel/sanctum/compare/v2.9.2...v2.9.3) |
80 | 85 |
|
81 | 86 | ### Changed |
82 | | -- Environment APP_URL added into the default sanctum.stateful configuration ([#264](https://github.com/laravel/sanctum/pull/264)) |
83 | 87 |
|
| 88 | +- Environment APP_URL added into the default sanctum.stateful configuration ([#264](https://github.com/laravel/sanctum/pull/264)) |
84 | 89 |
|
85 | 90 | ## [v2.9.2 (2021-03-23)](https://github.com/laravel/sanctum/compare/v2.9.1...v2.9.2) |
86 | 91 |
|
87 | 92 | ### Fixed |
88 | | -- Changed Primary Key will not be used in created token's plainTextToken ([#262](https://github.com/laravel/sanctum/pull/262)) |
89 | 93 |
|
| 94 | +- Changed Primary Key will not be used in created token's plainTextToken ([#262](https://github.com/laravel/sanctum/pull/262)) |
90 | 95 |
|
91 | 96 | ## [v2.9.1 (2021-03-09)](https://github.com/laravel/sanctum/compare/v2.9.0...v2.9.1) |
92 | 97 |
|
93 | 98 | ### Fixed |
94 | | -- Avoid running string functions when domain is null ([#258](https://github.com/laravel/sanctum/pull/258)) |
95 | 99 |
|
| 100 | +- Avoid running string functions when domain is null ([#258](https://github.com/laravel/sanctum/pull/258)) |
96 | 101 |
|
97 | 102 | ## [v2.9.0 (2021-01-26)](https://github.com/laravel/sanctum/compare/v2.8.2...v2.9.0) |
98 | 103 |
|
99 | 104 | ### Added |
| 105 | + |
100 | 106 | - Add multiple guard support for SPA auth ([#246](https://github.com/laravel/sanctum/pull/246), [f5695ae](https://github.com/laravel/sanctum/commit/f5695aecc547138c76bc66aaede73ba549dabdc5)) |
101 | 107 |
|
102 | 108 | ### Fixed |
103 | | -- Return json response when the request expects a json ([#247](https://github.com/laravel/sanctum/pull/247)) |
104 | 109 |
|
| 110 | +- Return json response when the request expects a json ([#247](https://github.com/laravel/sanctum/pull/247)) |
105 | 111 |
|
106 | 112 | ## [v2.8.2 (2020-11-24)](https://github.com/laravel/sanctum/compare/v2.8.1...v2.8.2) |
107 | 113 |
|
108 | 114 | ### Fixed |
109 | | -- Fix user provider in `sanctum` guard ([#225](https://github.com/laravel/sanctum/pull/225)) |
110 | 115 |
|
| 116 | +- Fix user provider in `sanctum` guard ([#225](https://github.com/laravel/sanctum/pull/225)) |
111 | 117 |
|
112 | 118 | ## [v2.8.1 (2020-11-17)](https://github.com/laravel/sanctum/compare/v2.8.0...v2.8.1) |
113 | 119 |
|
114 | 120 | ### Changed |
115 | | -- Add default nextjs address to stateful ([e86d3e0](https://github.com/laravel/sanctum/commit/e86d3e01ade3325438fe1e64ddd64ec53f828dc4)) |
116 | 121 |
|
| 122 | +- Add default nextjs address to stateful ([e86d3e0](https://github.com/laravel/sanctum/commit/e86d3e01ade3325438fe1e64ddd64ec53f828dc4)) |
117 | 123 |
|
118 | 124 | ## [v2.8.0 (2020-11-03)](https://github.com/laravel/sanctum/compare/v2.7.0...v2.8.0) |
119 | 125 |
|
120 | 126 | ### Added |
121 | | -- PHP 8 Support ([#213](https://github.com/laravel/sanctum/pull/213)) |
122 | 127 |
|
| 128 | +- PHP 8 Support ([#213](https://github.com/laravel/sanctum/pull/213)) |
123 | 129 |
|
124 | 130 | ## [v2.7.0 (2020-10-20)](https://github.com/laravel/sanctum/compare/v2.6.0...v2.7.0) |
125 | 131 |
|
126 | 132 | ### Added |
127 | | -- Adds origin header fallback ([#204](https://github.com/laravel/sanctum/pull/204)) |
128 | 133 |
|
| 134 | +- Adds origin header fallback ([#204](https://github.com/laravel/sanctum/pull/204)) |
129 | 135 |
|
130 | 136 | ## [v2.6.0 (2020-09-01)](https://github.com/laravel/sanctum/compare/v2.5.0...v2.6.0) |
131 | 137 |
|
132 | 138 | ### Changed |
133 | | -- Shorten tokens ([#186](https://github.com/laravel/sanctum/pull/186)) |
134 | 139 |
|
| 140 | +- Shorten tokens ([#186](https://github.com/laravel/sanctum/pull/186)) |
135 | 141 |
|
136 | 142 | ## [v2.5.0 (2020-08-25)](https://github.com/laravel/sanctum/compare/v2.4.2...v2.5.0) |
137 | 143 |
|
138 | 144 | ### Added |
139 | | -- Laravel 8 support ([#184](https://github.com/laravel/sanctum/pull/184)) |
140 | 145 |
|
| 146 | +- Laravel 8 support ([#184](https://github.com/laravel/sanctum/pull/184)) |
141 | 147 |
|
142 | 148 | ## [v2.4.2 (2020-06-16)](https://github.com/laravel/sanctum/compare/v2.4.1...v2.4.2) |
143 | 149 |
|
144 | 150 | ### Fixed |
145 | | -- Use the correct `Str::endsWith` parameter order ([#163](https://github.com/laravel/sanctum/pull/163)) |
146 | 151 |
|
| 152 | +- Use the correct `Str::endsWith` parameter order ([#163](https://github.com/laravel/sanctum/pull/163)) |
147 | 153 |
|
148 | 154 | ## [v2.4.1 (2020-06-11)](https://github.com/laravel/sanctum/compare/v2.4.0...v2.4.1) |
149 | 155 |
|
150 | 156 | ### Fixed |
151 | | -- Fix default statefull domains ([#158](https://github.com/laravel/sanctum/pull/158), [2aac713](https://github.com/laravel/sanctum/commit/2aac713ced04e6e7f046748833dea5ab4c98b621)) |
152 | 157 |
|
| 158 | +- Fix default statefull domains ([#158](https://github.com/laravel/sanctum/pull/158), [2aac713](https://github.com/laravel/sanctum/commit/2aac713ced04e6e7f046748833dea5ab4c98b621)) |
153 | 159 |
|
154 | 160 | ## [v2.4.0 (2020-06-09)](https://github.com/laravel/sanctum/compare/v2.3.3...v2.4.0) |
155 | 161 |
|
156 | 162 | ### Added |
| 163 | + |
157 | 164 | - Added Multiple Provider Support ([#149](https://github.com/laravel/sanctum/pull/149)) |
158 | 165 |
|
159 | 166 | ### Fixed |
160 | | -- Fixed Host Problem ([#155](https://github.com/laravel/sanctum/pull/155)) |
161 | 167 |
|
| 168 | +- Fixed Host Problem ([#155](https://github.com/laravel/sanctum/pull/155)) |
162 | 169 |
|
163 | 170 | ## [v2.3.3 (2020-05-26)](https://github.com/laravel/sanctum/compare/v2.3.2...v2.3.3) |
164 | 171 |
|
165 | 172 | ### Fixed |
166 | | -- EncryptCookies middleware option in config/sanctum.php ([#147](https://github.com/laravel/sanctum/pull/147)) |
167 | 173 |
|
| 174 | +- EncryptCookies middleware option in config/sanctum.php ([#147](https://github.com/laravel/sanctum/pull/147)) |
168 | 175 |
|
169 | 176 | ## [v2.3.2 (2020-05-21)](https://github.com/laravel/sanctum/compare/v2.3.1...v2.3.2) |
170 | 177 |
|
171 | 178 | ### Added |
172 | | -- Add routes config option ([6cf798f](https://github.com/laravel/sanctum/commit/6cf798ff69d43fb2a714986cf028b5b5fa5612f2)) |
173 | 179 |
|
| 180 | +- Add routes config option ([6cf798f](https://github.com/laravel/sanctum/commit/6cf798ff69d43fb2a714986cf028b5b5fa5612f2)) |
174 | 181 |
|
175 | 182 | ## [v2.3.1 (2020-05-12)](https://github.com/laravel/sanctum/compare/v2.3.0...v2.3.1) |
176 | 183 |
|
177 | 184 | ### Fixed |
178 | | -- 419 Exception with requests without referrer ([#139](https://github.com/laravel/sanctum/pull/139)) |
179 | 185 |
|
| 186 | +- 419 Exception with requests without referrer ([#139](https://github.com/laravel/sanctum/pull/139)) |
180 | 187 |
|
181 | 188 | ## [v2.3.0 (2020-05-05)](https://github.com/laravel/sanctum/compare/v2.2.0...v2.3.0) |
182 | 189 |
|
183 | 190 | ### Changed |
184 | | -- More performant tokens lookup ([#136](https://github.com/laravel/sanctum/pull/136)) |
185 | 191 |
|
| 192 | +- More performant tokens lookup ([#136](https://github.com/laravel/sanctum/pull/136)) |
186 | 193 |
|
187 | 194 | ## [v2.2.1 (2020-04-21)](https://github.com/laravel/sanctum/compare/v2.2.0...v2.2.1) |
188 | 195 |
|
189 | 196 | ### Fixed |
190 | | -- No need to specify a provider ([#129](https://github.com/laravel/sanctum/pull/129)) |
191 | 197 |
|
| 198 | +- No need to specify a provider ([#129](https://github.com/laravel/sanctum/pull/129)) |
192 | 199 |
|
193 | 200 | ## [v2.2.0 (2020-04-14)](https://github.com/laravel/sanctum/compare/v2.1.2...v2.2.0) |
194 | 201 |
|
195 | 202 | ### Added |
196 | | -- Allow customizing the query used to get the token ([#124](https://github.com/laravel/sanctum/pull/124)) |
197 | 203 |
|
| 204 | +- Allow customizing the query used to get the token ([#124](https://github.com/laravel/sanctum/pull/124)) |
198 | 205 |
|
199 | 206 | ## [v2.1.2 (2020-04-09)](https://github.com/laravel/sanctum/compare/v2.1.1...v2.1.2) |
200 | 207 |
|
201 | 208 | ### Fixed |
202 | | -- Enhance supportsTokens check ([#123](https://github.com/laravel/sanctum/pull/123)) |
203 | 209 |
|
| 210 | +- Enhance supportsTokens check ([#123](https://github.com/laravel/sanctum/pull/123)) |
204 | 211 |
|
205 | 212 | ## [v2.1.1 (2020-04-07)](https://github.com/laravel/sanctum/compare/v2.1.0...v2.1.1) |
206 | 213 |
|
207 | 214 | ### Fixed |
208 | | -- `actingAs` any ability ([#120](https://github.com/laravel/sanctum/pull/120)) |
209 | 215 |
|
| 216 | +- `actingAs` any ability ([#120](https://github.com/laravel/sanctum/pull/120)) |
210 | 217 |
|
211 | 218 | ## [v2.1.0 (2020-03-24)](https://github.com/laravel/sanctum/compare/v2.0.0...v2.1.0) |
212 | 219 |
|
213 | 220 | ### Added |
214 | | -- Make the guard configurable ([#110](https://github.com/laravel/sanctum/pull/110)) |
215 | 221 |
|
| 222 | +- Make the guard configurable ([#110](https://github.com/laravel/sanctum/pull/110)) |
216 | 223 |
|
217 | 224 | ## [v2.0.0 (2020-03-20)](https://github.com/laravel/sanctum/compare/v1.0.1...v2.0.0) |
218 | 225 |
|
219 | 226 | ### Changed |
220 | | -- Renamed package to Sanctum |
221 | 227 |
|
| 228 | +- Renamed package to Sanctum |
222 | 229 |
|
223 | 230 | ## [v1.0.1 (2020-03-12)](https://github.com/laravel/sanctum/compare/v1.0.0...v1.0.1) |
224 | 231 |
|
225 | 232 | ### Fixed |
| 233 | + |
226 | 234 | - Allow localhost ip access by default ([#81](https://github.com/laravel/sanctum/pull/81)) |
227 | 235 | - Update minimum Laravel version to ^6.9 ([#89](https://github.com/laravel/sanctum/pull/89)) |
228 | 236 | - Fix wildcard matching ([d8de232](https://github.com/laravel/sanctum/commit/d8de2323b49e9e408c7e5e302bcad392ed0989cb), [9a66e76](https://github.com/laravel/sanctum/commit/9a66e767e203bbee83cd5fcda7ce265835468f84)) |
229 | 237 |
|
230 | | - |
231 | 238 | ## [v1.0.0 (2020-03-03)](https://github.com/laravel/sanctum/compare/v0.2.1...v1.0.0) |
232 | 239 |
|
233 | 240 | First stable release. |
234 | 241 |
|
235 | | - |
236 | 242 | ## [v0.2.1 (2020-02-12)](https://github.com/laravel/sanctum/compare/v0.2.0...v0.2.1) |
237 | 243 |
|
238 | 244 | ### Changed |
239 | | -- Allow .env configuration of stateful domains ([#70](https://github.com/laravel/sanctum/pull/70)) |
240 | 245 |
|
| 246 | +- Allow .env configuration of stateful domains ([#70](https://github.com/laravel/sanctum/pull/70)) |
241 | 247 |
|
242 | 248 | ## [v0.2.0 (2020-01-28)](https://github.com/laravel/sanctum/compare/v0.1.0...v0.2.0) |
243 | 249 |
|
244 | 250 | ### Added |
| 251 | + |
245 | 252 | - Added user mocking using actingAs ([#51](https://github.com/laravel/sanctum/pull/51)) |
246 | 253 | - Add a CSRF middleware config variable ([#54](https://github.com/laravel/sanctum/pull/54), [4f77acd](https://github.com/laravel/sanctum/commit/4f77acd5e60d241b0bb8196b1986e6f59946af1d), [7df454d](https://github.com/laravel/sanctum/commit/7df454d03868d4329915a4d105b067df0d0a924d)) |
247 | 254 |
|
248 | 255 | ### Changed |
249 | | -- Modify PersonalAccessToken Model to be polymorphic ([#49](https://github.com/laravel/sanctum/pull/49)) |
250 | 256 |
|
| 257 | +- Modify PersonalAccessToken Model to be polymorphic ([#49](https://github.com/laravel/sanctum/pull/49)) |
251 | 258 |
|
252 | 259 | ## v0.1.0 (2020-01-20) |
253 | 260 |
|
|
0 commit comments