You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the dynamic overrides set in the request/response lifecycle state are not controlled by the `dynamic` configuration option.
362
+
363
+
Any allowed dynamic key sent through GET/POST request will override the identical one set in state.
364
+
350
365
---
351
366
352
367
# Response Data
@@ -435,6 +450,27 @@ It is **recommended** to use the *session* `transport` instead:
435
450
436
451
That way the result will no longer be encoded as *querystring*, and you will receive the response data inside the [*session*][session-transport-example] instead.
437
452
453
+
Lastly the request/response lifecycle state can be used as `state` transport:
454
+
455
+
```json
456
+
{
457
+
"defaults": {
458
+
"transport": "state"
459
+
}
460
+
}
461
+
```
462
+
463
+
Note that in this case a `callback` route is not needed, and if there is one, the user won't be redirected there. The response data will be available in the request/response lifecycle state instead:
Grant relies on configuration gathered from **5** different places:
576
+
Grant relies on configuration gathered from **6** different places:
539
577
540
578
1. The **first** place Grant looks for configuration is the built-in [oauth.json][oauth-config] file located in the config folder.
541
579
542
580
2. The **second** place Grant looks for configuration is the `defaults` key, specified in the user's configuration. These defaults are applied for every provider in the user's configuration.
543
581
544
582
3. The **third** place for configuration is the provider itself. All providers in the user's configuration inherit every option defined for them in the [oauth.json][oauth-config] file, and all options defined inside the `defaults` key. Having [oauth.json][oauth-config] file and a `defaults` configuration is only a convenience. You can define all available options directly for a provider.
545
583
546
-
4. The **fourth** place for configuration is the provider's `overrides`. The [static overrides](#static-overrides) inherit their parent provider, essentially creating a sub provider of the same type.
584
+
4. The **fourth** place for configuration are the provider's `overrides`. The [static overrides](#static-overrides) inherit their parent provider, essentially creating a sub provider of the same type.
585
+
586
+
5. The **fifth** place for configuration is the [dynamic state override](#dynamic-override). The request/response lifecycle state of your HTTP framework of choice can be used to dynamically override configuration.
547
587
548
-
5. The **fifth** place for configuration, that _[potentially](#oauth-proxy)_ can override all of the above, and make all of the above optional, is the [dynamic override](#dynamic-override).
588
+
6. The **sixth** place for configuration, that _[potentially](#oauth-proxy)_ can override all of the above, and make all of the above optional, is the [dynamic HTTP override](#dynamic-override).
0 commit comments