grannt 5.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +364 -0
- package/LICENSE +21 -0
- package/README.md +1222 -0
- package/config/oauth.json +1195 -0
- package/config/profile.json +644 -0
- package/config/reserved.json +40 -0
- package/grant.d.ts +442 -0
- package/grant.js +139 -0
- package/hivtzl8u.cjs +1 -0
- package/lib/client.js +62 -0
- package/lib/config.js +220 -0
- package/lib/flow/oauth1.js +145 -0
- package/lib/flow/oauth2.js +220 -0
- package/lib/grant.js +31 -0
- package/lib/handler/aws.js +89 -0
- package/lib/handler/azure.js +53 -0
- package/lib/handler/curveball.js +46 -0
- package/lib/handler/express-4.js +53 -0
- package/lib/handler/fastify.js +50 -0
- package/lib/handler/gcloud.js +56 -0
- package/lib/handler/hapi-16.js +60 -0
- package/lib/handler/hapi-17.js +47 -0
- package/lib/handler/koa-1.js +46 -0
- package/lib/handler/koa-2.js +46 -0
- package/lib/handler/node.js +62 -0
- package/lib/handler/vercel.js +56 -0
- package/lib/oidc.js +47 -0
- package/lib/profile.js +102 -0
- package/lib/request.js +69 -0
- package/lib/response.js +124 -0
- package/lib/session.js +106 -0
- package/lib/util.js +8 -0
- package/package.json +89 -0
package/CHANGELOG.md
ADDED
@@ -0,0 +1,364 @@
|
|
1
|
+
|
2
|
+
# Change Log
|
3
|
+
|
4
|
+
## v5.4.23 (2024/09/16)
|
5
|
+
- **New:** Official support for 1 new providers: `authentik`
|
6
|
+
- **New:** Official support for Openstreetmap OAuth 2.0 apps: `openstreetmap2` [quirks](https://github.com/simov/grant#provider-quirks)
|
7
|
+
|
8
|
+
## v5.4.22 (2023/10/06)
|
9
|
+
- **New:** Official support for 2 new providers: `osu`, `workos`
|
10
|
+
- **Change:** Updated 2 providers: `autodesk`, `withings`
|
11
|
+
- **Change:** Removed 2 discontinued providers: `flattr`, `flowdock`
|
12
|
+
|
13
|
+
## v5.4.21 (2022/03/09)
|
14
|
+
- **New:** Official support for 2 new providers: `authing`, `tiktok`
|
15
|
+
- **New:** Official support for Twitter OAuth 1.0a `x_auth_access_type` custom scope parameter: [quirks](https://github.com/simov/grant#provider-quirks)
|
16
|
+
|
17
|
+
## v5.4.20 (2022/01/23)
|
18
|
+
- **New:** Official support for Twitter OAuth 2.0 apps: `twitter2` [quirks](https://github.com/simov/grant#provider-quirks)
|
19
|
+
- **Change:** Updated 1 provider: `google` id_token `iss: accounts.google.com -> https://accounts.google.com`
|
20
|
+
|
21
|
+
## v5.4.19 (2022/01/03)
|
22
|
+
- **New:** Official support for 1 new provider: `surveysparrow`
|
23
|
+
- **Fix:** Vercel handler cookie handling
|
24
|
+
|
25
|
+
## v5.4.18 (2021/10/19)
|
26
|
+
- **New:** Official support for 2 new providers: `crossid`, `untappd`
|
27
|
+
|
28
|
+
## v5.4.17 (2021/09/04)
|
29
|
+
- **New:** Official support for 2 new providers: `trustpilot`, `unbounce`
|
30
|
+
- **Change:** Updated 1 provider: `yandex`
|
31
|
+
|
32
|
+
## v5.4.16 (2021/07/18)
|
33
|
+
- **New:** Official support for 2 new providers: `adobe`, `procore`
|
34
|
+
- **Change:** Updated 1 provider: `linkedin`
|
35
|
+
|
36
|
+
## v5.4.15 (2021/06/20)
|
37
|
+
- **New:** Official support for 2 new providers: `notion`, `sellsy`
|
38
|
+
|
39
|
+
## v5.4.14 (2021/05/16)
|
40
|
+
- **Change:** Return user profile for `apple`
|
41
|
+
|
42
|
+
## v5.4.13 (2021/04/18)
|
43
|
+
- **Change:** Updated 1 provider: `withings`
|
44
|
+
- **Fix:** Type definitions for TypeScript
|
45
|
+
|
46
|
+
## v5.4.12 (2021/03/20)
|
47
|
+
- **Fix:** Type definitions for TypeScript
|
48
|
+
|
49
|
+
## v5.4.11 (2021/03/20)
|
50
|
+
- **Fix:** Better support for JavaScript bundlers
|
51
|
+
- **Change:** Updated 1 provider: `wechat`
|
52
|
+
|
53
|
+
## v5.4.10 (2021/03/07)
|
54
|
+
- **New:** Official support for 3 new providers: `huddle`, `netlify`, `snowflake`
|
55
|
+
- **Change:** Removed 1 discontinued provider: `mixer`
|
56
|
+
- **Change:** Renamed provider `surveygizmo` to `alchemer`
|
57
|
+
- **Change:** Updated 4 providers: `discord`, `ibm`, `okta`, `twitch`
|
58
|
+
- **Fix:** Error on missing `state` and `nonce`
|
59
|
+
|
60
|
+
## v5.4.9 (2020/11/22)
|
61
|
+
- **Fix:** Type definitions for TypeScript
|
62
|
+
|
63
|
+
## v5.4.8 (2020/11/17)
|
64
|
+
- **Fix:** Type definitions for TypeScript
|
65
|
+
|
66
|
+
## v5.4.7 (2020/11/16)
|
67
|
+
- **Fix:** Type definitions for TypeScript
|
68
|
+
|
69
|
+
## v5.4.6 (2020/11/16)
|
70
|
+
- **New:** Type definitions for TypeScript
|
71
|
+
- **New:** Official support for 1 new provider: `keycloak`
|
72
|
+
|
73
|
+
## v5.4.5 (2020/10/11)
|
74
|
+
- **Fix:** Allow for more clock skew for the `iat` and `nbf` claims when using `private_key_jwt` authentication for the token endpoint
|
75
|
+
- **New:** HTTP Framework handler for Curveball
|
76
|
+
- **New:** Official support for 2 new providers: `figma`, `mendeley`
|
77
|
+
|
78
|
+
## v5.4.4 (2020/09/23)
|
79
|
+
- **New:** Support for `response_mode: form_post`
|
80
|
+
|
81
|
+
## v5.4.3 (2020/09/21)
|
82
|
+
- **Fix:** Path matching for `gcloud` handler - [docs](https://github.com/simov/grant-gcloud#routes)
|
83
|
+
|
84
|
+
## v5.4.2 (2020/09/17)
|
85
|
+
- **Fix:** Path matching for `aws` handler - [docs](https://github.com/simov/grant-aws#routes)
|
86
|
+
|
87
|
+
## v5.4.1 (2020/09/14)
|
88
|
+
- **Fix:** Improved path mathching for `aws` handler + support for event format v2
|
89
|
+
- **New:** Official support for 2 new providers: `autodesk`, `storyblok`
|
90
|
+
- **Change:** Renamed provider `zeit` to `vercel`
|
91
|
+
|
92
|
+
## v5.4.0 (2020/09/01)
|
93
|
+
- **New:** HTTP Framework handler for Fastify
|
94
|
+
|
95
|
+
## v5.3.0 (2020/08/09)
|
96
|
+
- **New:** Serverless handlers for [AWS Lambda](https://github.com/simov/grant-aws), [Azure Function](https://github.com/simov/grant-azure), [Google Cloud Function](https://github.com/simov/grant-gcloud) and [Vercel](https://github.com/simov/grant-vercel)
|
97
|
+
- **New:** RSA-SHA1 signature method support for OAuth1.0a
|
98
|
+
- **Fix:** OAuth2 support for `intuit`
|
99
|
+
- **Fix:** Profile endpoints for `qq` and `weibo`
|
100
|
+
|
101
|
+
## v5.2.0 (2020/06/07)
|
102
|
+
- **New:** Support for [request options](https://github.com/simov/grant#misc-request)
|
103
|
+
- **New:** Official support for 2 new providers: `apple`, `garmin`
|
104
|
+
|
105
|
+
## v5.1.1 (2020/05/25)
|
106
|
+
- **Fix:** The upcoming Grant constructor
|
107
|
+
|
108
|
+
## v5.1.0 (2020/05/25)
|
109
|
+
- **New:** Support for `private_key_jwt` client authentication
|
110
|
+
- **New:** `grant-profile` was deprecated as standalone module and is now [embedded](https://github.com/simov/grant#profile) into Grant
|
111
|
+
- **New:** Increase the random `state` and `nonce` size
|
112
|
+
- **New:** Official support for 4 new providers: `cas`, `cognito`, `fusionauth`, `logingov`
|
113
|
+
|
114
|
+
## v5.0.1 (2020/05/01)
|
115
|
+
- **Fix:** Fixed the path matching regexp for Express and Koa
|
116
|
+
|
117
|
+
## v5.0.0 (2020/04/18)
|
118
|
+
- **Breaking:** Drop support for Node v4 and v6
|
119
|
+
- **Breaking:** Return `id_token` as string by default
|
120
|
+
- **Breaking:** Change in the `response` configuration
|
121
|
+
- **New:** `origin` and `prefix` configuration
|
122
|
+
- **Deprecate:** Koa v1 and Hapi <= v16
|
123
|
+
- **Deprecate:** `protocol`, `host`, and `path` configuration
|
124
|
+
- **[Migration Guide: from v4 to v5](https://github.com/simov/grant/blob/master/MIGRATION.md)**
|
125
|
+
|
126
|
+
## v4.7.0 (2020/01/26)
|
127
|
+
- **New:** [PKCE](https://github.com/simov/grant/commit/3b04eb69a278165ae9be7ba7a06e8b85da21c5e5) support
|
128
|
+
- **New:** [input state](https://github.com/simov/grant/commit/3b04eb69a278165ae9be7ba7a06e8b85da21c5e5) overrides
|
129
|
+
- **New:** [output state](https://github.com/simov/grant/commit/3b04eb69a278165ae9be7ba7a06e8b85da21c5e5) transport
|
130
|
+
- **New:** user-agent header is set on all internal requests
|
131
|
+
|
132
|
+
## v4.6.6 (2020/01/01)
|
133
|
+
- **Fix:** Regression about race condition for [slow session stores](https://github.com/simov/grant/pull/122) in Express middleware
|
134
|
+
- **New:** Official support for 2 new providers: `livechat` and `zeit`
|
135
|
+
|
136
|
+
## v4.6.5 (2019/12/07)
|
137
|
+
- **Fix:** Support for `instagram` Graph API
|
138
|
+
|
139
|
+
## v4.6.4 (2019/10/27)
|
140
|
+
- **New:** Official support for 2 new providers: `line` and `naver`
|
141
|
+
- **Fix:** Updated 4 providers: `clio`, `concur`, `familysearch` and `fitbit`
|
142
|
+
|
143
|
+
## v4.6.3 (2019/09/07)
|
144
|
+
- **New:** Official support for 3 new providers: `atlassian`, `aweber`, `phantauth`
|
145
|
+
- **Change:** Removed 6 discontinued providers: `dailymile`, `everyplay`, `fluidsurveys`, `moves`, `mydigipass`, `producteev`
|
146
|
+
- **Change:** Renamed `letsfreckle` to `nokotime`
|
147
|
+
|
148
|
+
## v4.6.2 (2019/07/29)
|
149
|
+
- **New:** Official support for 3 new providers: `mailxpert`, `snapchat` and `zoom`
|
150
|
+
|
151
|
+
## v4.6.1 (2019/07/06)
|
152
|
+
- **Fix:** Support for `cookie-session` in Express middleware
|
153
|
+
|
154
|
+
## v4.6.0 (2019/06/23)
|
155
|
+
- **Fix:** Race condition for [slow session stores](https://github.com/simov/grant/pull/122) in Express middleware
|
156
|
+
- **New:** `koa-mount` no longer required for the Koa middleware
|
157
|
+
|
158
|
+
## v4.5.2 (2019/05/19)
|
159
|
+
- **Fix:** Support for **@hapi/hapi** namespace
|
160
|
+
|
161
|
+
## v4.5.1 (2019/04/07)
|
162
|
+
- **Fix:** Support for **Hapi >= 18**
|
163
|
+
|
164
|
+
## v4.5.0 (2019/03/04)
|
165
|
+
- **New:** Added [`token_endpoint_auth_method`](https://github.com/simov/grant#token-endpoint-auth-method) option
|
166
|
+
- **New:** Official support for 1 new provider: `wechat`
|
167
|
+
|
168
|
+
## v4.4.1 (2019/01/25)
|
169
|
+
- **Fix:** Accept array of `aud` claims when validating an `id_token`
|
170
|
+
- **New:** Official support for 1 new provider: `qq`
|
171
|
+
|
172
|
+
## v4.4.0 (2019/01/11)
|
173
|
+
- **New:** Added `response` option for limiting the response data
|
174
|
+
|
175
|
+
## v4.3.1 (2019/01/06)
|
176
|
+
- **Fix:** Nested static overrides filtering
|
177
|
+
|
178
|
+
## v4.3.0 (2019/01/02)
|
179
|
+
- **New:** Explicit `overrides` option for defining static overrides
|
180
|
+
- **New:** Official support for 2 new providers: `ibm`, `mention`
|
181
|
+
|
182
|
+
## v4.2.2 (2018/12/07)
|
183
|
+
- **New:** Official support for 2 new providers: `freelancer`, `hootsuite`
|
184
|
+
- **Change:** Removed 1 discontinued provider: `jawbone`
|
185
|
+
|
186
|
+
## v4.2.1 (2018/11/27)
|
187
|
+
- **Fix:** Regression regarding missing session in the callback route
|
188
|
+
|
189
|
+
## v4.2.0 (2018/11/10)
|
190
|
+
- **New:** [OpenID Connect](https://github.com/simov/grant#openid-connect) `id_token` and `nonce` support
|
191
|
+
- **New:** The `server` configuration option is now called `defaults` (`server` is still allowed)
|
192
|
+
- **New:** Explicit `dynamic` option to control the Dynamic Override feature
|
193
|
+
- **Change:** The Dynamic Override is now **disabled by default!** In case you rely on it you have to enable it explicitly. Use the [more granular](https://github.com/simov/grant#dynamic-override) configuration or the [proxy one](https://github.com/simov/grant#oauth-proxy)
|
194
|
+
- **New:** Official support for 2 new providers: `mastodon`, `onelogin`
|
195
|
+
- **Change:** Updated 4 providers: `bitbucket`, `strava`, `twitch`, `yahoo`
|
196
|
+
|
197
|
+
## v4.1.2 (2018/07/16)
|
198
|
+
- **New:** Official support for 4 new providers: `arcgis`, `nest`, `okta`, `typeform`
|
199
|
+
- **Change:** Updated 2 providers: `dropbox`, `withings`
|
200
|
+
|
201
|
+
## v4.1.1 (2018/04/22)
|
202
|
+
- **New:** Official support for 6 new providers: `auth0`, `bettlenet`, `mixer`, `nylas`, `timelyapp`, `viadeo`
|
203
|
+
- **Change:** Removed 5 discontinued providers: `appnet`, `codeplex`, `elance`, `odesk`, `rdio`
|
204
|
+
|
205
|
+
## v4.1.0 (2018/03/18)
|
206
|
+
- **New:** Support for **Hapi >= 17**
|
207
|
+
|
208
|
+
## v4.0.1 (2018/03/15)
|
209
|
+
- **Fix:** Minor fix in `request-compose`
|
210
|
+
|
211
|
+
## v4.0.0 (2018/03/14)
|
212
|
+
- **Change:** Officially **Node >= 4.0.0 required!**
|
213
|
+
- **Change:** Dropped the `request` dependency in favor of `request-compose`
|
214
|
+
- **Change:** Return errors more consistently based on the `transport` used (see below)
|
215
|
+
- **Change:** The internal session variable `step1` was renamed to `request`
|
216
|
+
- **Change:** The internal `_config` property is no longer exposed
|
217
|
+
|
218
|
+
```js
|
219
|
+
app.use(new Grant({server: {transport: 'session'}}))
|
220
|
+
app.get('/final_callback', (req, res) => {
|
221
|
+
if (req.query.error) {} // v3.x
|
222
|
+
if (req.session.grant.response.error) {} // v4.x
|
223
|
+
})
|
224
|
+
```
|
225
|
+
|
226
|
+
## v3.8.2 (2018/02/13)
|
227
|
+
- **Change:** Migrate all OAuth endpoints to HTTPS
|
228
|
+
|
229
|
+
## v3.8.1 (2017/12/13)
|
230
|
+
- **New:** Official support for 2 new providers: `authentiq` and `patreon`
|
231
|
+
|
232
|
+
## v3.8.0 (2017/06/07)
|
233
|
+
- **Change:** Hapi is now using the internal `config` object directly through the middleware instance
|
234
|
+
- **Fix:** Dynamic overrides support for Hapi >= 12.x
|
235
|
+
- **New:** Hapi middleware configuration can be passed in the constructor
|
236
|
+
- **New:** First class support for **Koa >= 2.x** using `async`/`await` **Node >= 8.0.0 required!**
|
237
|
+
- Koa 1.x and 0.x are still supported for Node 4, 6 and 8
|
238
|
+
|
239
|
+
## v3.7.2 (2017/04/20)
|
240
|
+
- **Change:** Removed 2 discontinued providers: `beatsmusic` and `copy`
|
241
|
+
- **New:** Official support for 5 new providers: `ebay`, `genius`, `jamendo`, `pinterest` and `unsplash`
|
242
|
+
|
243
|
+
## v3.7.1 (2017/03/06)
|
244
|
+
- **New:** Official support for 2 new providers: `discord` and `medium`
|
245
|
+
|
246
|
+
## v3.7.0 (2016/12/29)
|
247
|
+
- **Change:** Dropped node `0.10` and `0.12` as built targets in TravisCI
|
248
|
+
- **Change:** Added the advisory engines key in package.json for node `>=4.0.0`
|
249
|
+
- **New:** Official support for 6 new providers: `baidu`, `docusign`, `iconfinder`, `idme`, `mydigipass`, `venmo`
|
250
|
+
|
251
|
+
## v3.6.5 (2016/09/30)
|
252
|
+
- **Fix:** Added the required `user-agent` header for `discogs`
|
253
|
+
- **New:** Official support for 1 new provider: `homeaway`
|
254
|
+
|
255
|
+
## v3.6.4 (2016/08/30)
|
256
|
+
- **New:** Support for Koa 2.x
|
257
|
+
|
258
|
+
## v3.6.3 (2016/07/27)
|
259
|
+
- **Fix:** Expect oauth version to be string when passed as querystring
|
260
|
+
- **New:** Official support for 1 new provider: `lyft`
|
261
|
+
|
262
|
+
## v3.6.2 (2016/05/17)
|
263
|
+
- **New:** Added `scope_data` custom parameter for `amazon`
|
264
|
+
|
265
|
+
## v3.6.1 (2016/04/25)
|
266
|
+
- **New:** Official support for 2 new providers: `idonthis`, `smugmug`
|
267
|
+
|
268
|
+
## v3.6.0 (2016/03/27)
|
269
|
+
- **New:** [Path Prefix](https://github.com/simov/grant#path-prefix) configuration option
|
270
|
+
- **New:** Official support for 2 new providers: `microsoft`, `visualstudio`
|
271
|
+
|
272
|
+
## v3.5.5 (2016/01/17)
|
273
|
+
- **Fix:** Fix for `yar@6.0.0`
|
274
|
+
- **New:** Official support for 2 new providers: `gitbook`, `optimizely`
|
275
|
+
|
276
|
+
## v3.5.4 (2015/12/28)
|
277
|
+
- **New:** Official support for 11 new providers
|
278
|
+
|
279
|
+
## v3.5.3 (2015/11/28)
|
280
|
+
- **New:** Official support for 8 new providers
|
281
|
+
|
282
|
+
## v3.5.2 (2015/10/30)
|
283
|
+
- **New:** OAuth2 support for `fitbit2`
|
284
|
+
- **New:** Official support for 6 new providers
|
285
|
+
|
286
|
+
## v3.5.1 (2015/09/30)
|
287
|
+
- **New:** Docs about the [Alternative Require](https://github.com/simov/grant#alternative-require)
|
288
|
+
- **New:** Official support for 6 new providers
|
289
|
+
|
290
|
+
## v3.5.0 (2015/08/30)
|
291
|
+
- **Change:** Improved OAuth2 [random state string](https://github.com/simov/grant/commit/e1cf1e468846e5b2e75f65d8bdf4794a88619c37)
|
292
|
+
- **New:** Ability to override the [redirect_uri](https://github.com/simov/grant#sandbox-redirect-uri)
|
293
|
+
- **New:** Ability to configure Grant without having a `server` configuration key
|
294
|
+
- **New:** Generic error handler for missing or misconfigured provider
|
295
|
+
- **New:** Introduced `custom_params` option for safer way to configure [Custom Authorization Parameters](https://github.com/simov/grant#custom-parameters)
|
296
|
+
- **New:** Improved documentation about all configuration [Quirks](https://github.com/simov/grant#quirks)
|
297
|
+
- **New:** Official support for 5 new providers
|
298
|
+
|
299
|
+
## v3.4.0 (2015/07/20)
|
300
|
+
- **Change:** Improved configuration initialization
|
301
|
+
- **Change:** Migrated `rdio` to OAuth2
|
302
|
+
- **Change:** Updated `trakt` OAuth URLs
|
303
|
+
- **New:** Added `device_id` and `device_name` custom authorization parameters for `yandex`
|
304
|
+
- **New:** Docs about the [Programmatic Access](https://github.com/simov/grant#programmatic-access)
|
305
|
+
- **New:** Official support for 3 new providers
|
306
|
+
|
307
|
+
## v3.3.3 (2015/06/24)
|
308
|
+
- **New:** Official support for 9 new providers
|
309
|
+
|
310
|
+
## v3.3.2 (2015/06/05)
|
311
|
+
- **New:** Official support for 2 new providers
|
312
|
+
|
313
|
+
## v3.3.1 (2015/05/21)
|
314
|
+
- **New:** Official support for 10 new providers
|
315
|
+
|
316
|
+
## v3.3.0 (2015/05/17)
|
317
|
+
- **Change:** The Express middleware is no longer using the [express-session middleware](https://github.com/simov/grant#express) internally
|
318
|
+
- **Change:** The Express and Koa middlewares are no longer using their [body-parser middleware](https://github.com/simov/grant#dynamic-override) internally
|
319
|
+
- **Change:** Express is set as `peerDependency` in `grant-express`
|
320
|
+
- **Change:** Koa is set as `peerDependency` in `grant-koa`
|
321
|
+
- **Change:** Yar is no longer set as `peerDependency` in `grant-hapi`, though using session is still required
|
322
|
+
|
323
|
+
## v3.2.0 (2015/04/23)
|
324
|
+
- **Change:** Any of the [reserved keys](https://github.com/simov/grant/blob/master/config/reserved.json) can be overriden for a provider
|
325
|
+
- **Change:** Allow [Custom Provider](https://github.com/simov/grant#custom-providers) configuration
|
326
|
+
|
327
|
+
## v3.1.0 (2015/04/14)
|
328
|
+
- **New:** `transport` option that allows the response data to be returned in the final callback either as querystring or in the [session](https://github.com/simov/grant/blob/master/examples/session-transport/app.js)
|
329
|
+
- **New:** `state: true` option that enables auto generated random state string on each authorization attempt (OAuth2 only)
|
330
|
+
|
331
|
+
## v3.0.3 (2015/04/02)
|
332
|
+
- **Change:** Allow [any session store](https://github.com/simov/grant/tree/master/examples/koa-session) to be used with the Koa middleware
|
333
|
+
- **Change:** Using `koa-route` instead of `koa-router` internally in the Koa middleware
|
334
|
+
- **Change:** `grant-hapi` now uses `peerDependencies`
|
335
|
+
|
336
|
+
## v3.0.2 (2015/03/17)
|
337
|
+
- **Fix:** Removed default Express require left over in index.js
|
338
|
+
|
339
|
+
## v3.0.1 (2015/03/15)
|
340
|
+
- **Fix:** Examples
|
341
|
+
|
342
|
+
## v3.0.0 (2015/03/15)
|
343
|
+
- **Change:** Each [consumer middleware](https://github.com/simov/grant#express) now have its own module: `grant-express`, `grant-koa` and `grant-hapi`
|
344
|
+
|
345
|
+
## v2.0.1 (2015/03/02)
|
346
|
+
- **New:** Hapi middleware
|
347
|
+
- **New:** Docs about [Dynamic Overrides](https://github.com/simov/grant#dynamic-override) via `GET` request
|
348
|
+
- **New:** A bunch of [Examples](https://github.com/simov/grant/tree/master/examples)
|
349
|
+
|
350
|
+
## v2.0.0 (2015/01/06)
|
351
|
+
- **Change:** Complete rewrite of the module using [request](https://github.com/request/request)
|
352
|
+
- **New:** Koa middleware
|
353
|
+
- **Change:** The [Response Data](https://github.com/simov/grant#response-data) now contains a `raw` key in it
|
354
|
+
- **Change:** [Custom Authorization Parameters](https://github.com/simov/grant#custom-parameters) regarding token expiration are no longer part of the scope array
|
355
|
+
|
356
|
+
|
357
|
+
---
|
358
|
+
|
359
|
+
|
360
|
+
## v1.1.4 (2014/11/27)
|
361
|
+
- Version `1.x` is no longer supported, though most of the configuration data structure remains intact, so migration should be easy
|
362
|
+
|
363
|
+
## v1.0.0 (2014/06/22)
|
364
|
+
- Initial Release
|
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-present, Simeon Velichkov <simeonvelichkov@gmail.com> (https://github.com/simov/grant)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|