1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-19 13:31:43 +03:00
graphql-engine/server/src-lib/Hasura/Server
Karthikeyan Chinnakonda 3020150274 server: allow mapping session variables to standard JWT claims
fixes https://github.com/hasura/graphql-engine/issues/6449

A while back we added [support for customizing JWT claims](https://github.com/hasura/graphql-engine/pull/3575) and this enabled to map a session variable to any value within the unregistered claims, but as reported in  , users aren't able to map the `x-hasura-user-id` session variable to the `sub` standard JWT claim.

This PR fixes the above issue by allowing mapping session variables to standard JWT claims as well.

GitOrigin-RevId: d3e63d7580adac55eb212e0a1ecf7c33f5b3ac4b
2021-01-21 16:50:46 +00:00
..
API Server: Remote relationships permissions 2021-01-19 20:57:58 +00:00
Auth server: allow mapping session variables to standard JWT claims 2021-01-21 16:50:46 +00:00
Init server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Migrate server: move Hasura.SQL to Hasura.Backends.Postgres () 2020-10-27 13:53:49 +00:00
Telemetry server: simplify JSON instances 2021-01-19 19:15:42 +00:00
App.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Auth.hs server: accept new config allowed_skew in JWT config to provide leeway in JWT expiry 2021-01-13 08:39:18 +00:00
CheckUpdates.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Compression.hs server: move Hasura.SQL to Hasura.Backends.Postgres () 2020-10-27 13:53:49 +00:00
Cors.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Init.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Logging.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Middleware.hs Migrate to GHC 8.10, upgrade dependencies. Closes 2020-05-13 19:13:02 -04:00
Migrate.hs server: RQL code health 2021-01-08 23:10:36 +00:00
SchemaUpdate.hs server: simplify JSON instances 2021-01-19 19:15:42 +00:00
Telemetry.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Types.hs server: metadata storage abstraction for scheduled triggers 2020-11-25 10:57:38 +00:00
Utils.hs Merge pull request from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
Version.hs server: make more use of hlint () 2020-10-28 16:40:33 +00:00