 Russell DaviesandSteve Chávez
|
473ac70789
|
Add support for parsing JSON Web Key Sets
|
2018-11-13 13:58:17 -05:00 |
|
steve-chavez
|
dadfe965b9
|
Do hlint 2.1 hints
|
2018-11-06 11:54:10 -05:00 |
|
 Steve ChávezandGitHub
|
0a1d83ce8f
|
Fix JWTIssuedAtFuture for valid iat claim (#1166)
* Add test for ensuring "iat" works with time cache
|
2018-08-16 12:29:32 -05:00 |
|
steve-chavez
|
f033c2c4b5
|
Add role-claim-key config value
|
2018-04-30 11:31:06 -05:00 |
|
steve-chavez
|
5c87fe2704
|
Add getCurrentTime cache for jwt validation
|
2018-04-30 11:31:06 -05:00 |
|
 Ruslan TalpaandGitHub
|
e4183780a9
|
Fix #1016
|
2017-12-12 15:31:39 +02:00 |
|
 Pi3randJoe Nelson
|
2b5ae34c5a
|
Update jose to 0.6 (#997)
|
2017-10-15 10:49:25 -04:00 |
|
 Elliot MurphyandJoe Nelson
|
3ccae4bb8b
|
Allow configurable audience claim (#975)
|
2017-09-26 07:29:20 -07:00 |
|
 Joe NelsonandGitHub
|
0ed4215a0d
|
Support asymmetric JWK (#919)
|
2017-08-09 08:42:00 -05:00 |
|
 Ruslan TalpaandJoe Nelson
|
5fffbbe381
|
Make HTTP headers available as GUCs #800 (#849)
|
2017-04-10 19:23:48 -05:00 |
|
Joe Nelson
|
c6cd8145eb
|
Set request.jwt.claim.*
|
2016-10-17 22:32:36 -07:00 |
|
Joe Nelson
|
62ed9e2c4d
|
Do not require jwt secret, but die on auth without it
|
2016-09-24 21:28:08 -07:00 |
|
Joe Nelson
|
fb5fce026d
|
Issue http 401 for expired jwt
Fixes #512
|
2016-09-24 21:28:08 -07:00 |
|
 Diogo BiazusandJoe Nelson
|
6f737056a2
|
Protolude completion in library and executable (#697)
|
2016-08-21 15:10:19 -07:00 |
|
Diogo Biazus
|
0e172b8030
|
Port Auth to prolude
|
2016-06-29 09:25:57 -04:00 |
|
Jacky Hu
|
cf4e157de7
|
Provide a swagger2 spec for the dynamic API
Related issue: #144
|
2016-06-18 10:18:43 +08:00 |
|
Joe Nelson
|
c7d863c998
|
Merge pull request #605 from diogob/microlens
Replace lens dependency for microlens
|
2016-05-21 11:48:07 -07:00 |
|
Diogo Biazus
|
b68fcd2522
|
Replace lens dependency for microlens
|
2016-05-21 13:31:39 -04:00 |
|
Diogo Biazus
|
abd81c998b
|
jwtClaims should always return Left for invalid JWT
|
2016-05-21 13:18:45 -04:00 |
|
Joe Nelson
|
18e3c30ad8
|
Return proper 401/403 when access denied
Fixes #584
|
2016-05-15 00:56:47 -07:00 |
|
Joe Nelson
|
eae5857d0e
|
Set role only once, and set it before other GUC vars (#560)
* Set role only once, and set it before other GUC vars
Fixes #559
* Unify role/claim logic in claimsToSQL
Suggested by @diogob
|
2016-04-15 07:30:36 -07:00 |
|
Joe Nelson
|
358254639a
|
Merge @ruslantalpa's fk improved detection
|
2016-03-12 12:42:57 -08:00 |
|
Joe Nelson
|
f67e195f76
|
Expose all claims via sql postgrest.claims
|
2016-03-11 20:51:22 -08:00 |
|
Joe Nelson
|
508d722fb2
|
Allow SQL functions to generate registered JWT claims
|
2016-03-10 21:58:43 -08:00 |
|
Ruslan Talpa
|
40eec0b2ff
|
code beautify using stylish-haskell
|
2016-02-29 14:53:41 +02:00 |
|
Joe Nelson
|
cbb2ba7d42
|
Appease hlint
|
2016-01-24 18:09:20 -08:00 |
|
Joe Nelson
|
6122bc4108
|
Middleware compiles
|
2016-01-24 18:09:18 -08:00 |
|
Joe Nelson
|
87c946ef52
|
Treat JWT as a Secret, not String
|
2015-11-19 09:58:41 -08:00 |
|
Diogo Biazus
|
f47d5e52f4
|
Moves all PgQuery module to QueryBuilder
|
2015-11-14 22:54:55 -05:00 |
|
calebmer
|
62cb8e0453
|
Cleanup JWT expires
|
2015-11-11 08:34:50 -05:00 |
|
calebmer
|
aab2f0d1f1
|
Ensure JWT expires
|
2015-11-05 17:04:54 -05:00 |
|
Diogo Biazus
|
2c1236652e
|
Fixes hlint suggestions
|
2015-11-01 16:49:21 -05:00 |
|
Ruslan Talpa
|
cd3a149aa4
|
Merge remote-tracking branch 'begriffs/v3' into v3
|
2015-10-24 21:25:01 +03:00 |
|
Joe Nelson
|
7692693aae
|
Enforce GHC >= 7.10 and fix Stack warnings
|
2015-10-23 10:33:27 -07:00 |
|
Ruslan Talpa
|
f5fb78ec99
|
version changed to 3, circle ci to use ghc 7.10.1, stricter import/export in PgQuery and remove of dead code
|
2015-10-23 12:23:46 +03:00 |
|
Diogo Biazus
|
d000a6c61a
|
Eliminates SET role duplication and changes Auth module interface
|
2015-10-22 00:08:02 -04:00 |
|
Diogo Biazus
|
250a4dcfb2
|
Adds back import to make GHC 7.8 happy
|
2015-10-20 19:51:25 -04:00 |
|
Diogo Biazus
|
6e55017f96
|
Cleans and adds haddock comments
|
2015-10-20 19:48:54 -04:00 |
|
Diogo Biazus
|
2ea7bc29c6
|
Moves function from top level to where
|
2015-10-20 00:43:21 -04:00 |
|
Diogo Biazus
|
8b5f4e8556
|
Removes lenses and uses simpler approach to generate JWT claims. Also fixes the setVar to avoid the ::unknown type cast from insertableValue
|
2015-10-18 17:14:11 -04:00 |
|
Diogo Biazus
|
7ef5b7b43a
|
Simplifies pattern matching using insertableValue and quote variable as identifier.
|
2015-10-18 14:03:43 -04:00 |
|
Diogo Biazus
|
241a38e958
|
Makes JWT generation possible in RPC endpoints
Fixes SET execution to execute in separate statements as Hasql uses
prepared statements we need to send 1 commend per statement.
|
2015-10-18 02:30:32 -04:00 |
|
Diogo Biazus
|
aae55e0282
|
Make complete match agains ClaimsMap in setVar
|
2015-10-17 20:41:42 -04:00 |
|
Diogo Biazus
|
31f1a30d6f
|
Cleans imports in Middleware and define exports in Auth
|
2015-10-16 15:56:07 -04:00 |
|
Diogo Biazus
|
3add3f5b6c
|
First draft of big auth simplification
|
2015-10-16 15:55:47 -04:00 |
|
calebmer
|
8e107e5b24
|
Tolerate missing role in user creation
|
2015-10-07 20:01:46 -04:00 |
|
Ruslan Talpa
|
94b1d2815c
|
small changes suggested by @diogob
|
2015-09-29 11:40:33 +03:00 |
|
Ruslan Talpa
|
c42832f1c5
|
code cleanup
|
2015-09-25 11:51:37 +03:00 |
|
Joe Nelson
|
35f05f6fe1
|
Standardize indentation
|
2015-09-06 16:13:11 -07:00 |
|
Joe Nelson
|
1656fb9f57
|
Let the transaction reset the role and user id for us
|
2015-08-26 20:49:23 -07:00 |
|