Skip to content
Snippets Groups Projects
Unverified Commit ee8accc0 authored by Steve Reis's avatar Steve Reis Committed by gitbook-bot
Browse files

GitBook: [#23] No subject

parent e3d72924
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* [🔑 Authentication](for-developers/gateway/authentication.md) * [🔑 Authentication](for-developers/gateway/authentication.md)
* [👥 Users](for-developers/gateway/users.md) * [👥 Users](for-developers/gateway/users.md)
* [🗃 Static files](for-developers/gateway/static-files.md) * [🗃 Static files](for-developers/gateway/static-files.md)
* [🧙♂ GraphQL](for-developers/gateway/graphql/README.md)
* [Decorators](for-developers/gateway/graphql/decorators.md)
* [📝 Cache](for-developers/gateway/cache.md) * [📝 Cache](for-developers/gateway/cache.md)
* [🔌 Connectors](for-developers/connector/README.md) * [🔌 Connectors](for-developers/connector/README.md)
* [Create a connector](for-developers/gateway/connector/create-a-connector.md) * [Create a connector](for-developers/gateway/connector/create-a-connector.md)
......
...@@ -22,14 +22,16 @@ description: >- ...@@ -22,14 +22,16 @@ description: >-
#### Authentication #### Authentication
| name | type | default | description | | name | type | default | description |
| ----------------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | -------------------------------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| AUTH\_SKIP | boolean | false | Allow to skip authentication. Warn: all routes will be accessible without authentication. | | AUTH\_SKIP | boolean | false | Allow to skip authentication. Warn: all routes will be accessible without authentication. |
| AUTH\_JWT\_SECRET | string | N/A | Secret that should be used to generate JWT token | | AUTH\_JWT\_SECRET | string | N/A | Secret that should be used to generate JWT |
| AUTH\_JWT\_TOKEN\_EXPIRES\_IN | string | '2d' | <p>JWT token time to live.</p><p>Expressed in seconds or a string describing a time span <a href="https://github.com/vercel/ms">vercel/ms</a></p> | | AUTH\_JWT\_REFRESH\_SECRET | string | N/A | Secret that should be used to generate Refresh Token |
| AUTH\_COOKIE\_SAME\_SITE | string | 'strict' | Specify the cookie same site option. Value can be `lax`, `strict` or `none` | | AUTH\_JWT\_TOKEN\_EXPIRES\_IN | string | '1h' | <p>JWT time to live.</p><p>Expressed in seconds or a string describing a time span <a href="https://github.com/vercel/ms">vercel/ms</a></p> |
| AUTH\_COOKIE\_SECURE | boolean | true | Specify the cookie secure option. Should be set to true if same site is not set to `strict`. | | AUTH\_JWT\_REFRESH\_TOKEN\_EXPIRES\_IN | | '2d' | <p>Refresh token time to live.</p><p>Expressed in seconds or a string describing a time span <a href="https://github.com/vercel/ms">vercel/ms</a></p> |
| AUTH\_ENABLE\_SSO | boolean | false | Enable SSO login process, this variable will be provided to the frontend in order to perform the login. | | AUTH\_COOKIE\_SAME\_SITE | string | 'strict' | Specify the cookie same site option. Value can be `lax`, `strict` or `none` |
| AUTH\_COOKIE\_SECURE | boolean | true | Specify the cookie secure option. Should be set to true if same site is not set to `strict`. |
| AUTH\_ENABLE\_SSO | boolean | false | Enable SSO login process, this variable will be provided to the frontend in order to perform the login. |
#### Database #### Database
......
# 🧙♂ GraphQL
# Decorators
The request and the response made by `GraphQL` are a bit different then what you should expect from a normal REST API. For this purpose and as this is something that is often used, two decorators have been implemented to inject the request with the `@GQLRequest`, the response with `@GQLResponse` or the user with the `@CurrentUser`.&#x20;
These 3 decorators can only be use in a GraphQL context, it will fail if it's a standard API REST request.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment