Update jose to 0.8 (and adapt error message test) (#1324)
The message changes between jose versions 0.7 and 0.8.
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ library
|
|||||||
, http-types >= 0.12.2 && < 0.13
|
, http-types >= 0.12.2 && < 0.13
|
||||||
, insert-ordered-containers >= 0.1 && < 0.3
|
, insert-ordered-containers >= 0.1 && < 0.3
|
||||||
, interpolatedstring-perl6 >= 1 && < 1.1
|
, interpolatedstring-perl6 >= 1 && < 1.1
|
||||||
, jose >= 0.7 && < 0.8
|
, jose >= 0.8 && < 0.9
|
||||||
, lens >= 4.14 && < 4.18
|
, lens >= 4.14 && < 4.18
|
||||||
, lens-aeson >= 1.0.1 && < 1.1
|
, lens-aeson >= 1.0.1 && < 1.1
|
||||||
, network-uri >= 2.6.1 && < 2.7
|
, network-uri >= 2.6.1 && < 2.7
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ extra-deps:
|
|||||||
- text-builder-0.6.5.1
|
- text-builder-0.6.5.1
|
||||||
- deferred-folds-0.9.10.1
|
- deferred-folds-0.9.10.1
|
||||||
- primitive-0.6.4.0
|
- primitive-0.6.4.0
|
||||||
|
- jose-0.8.0.0
|
||||||
ghc-options:
|
ghc-options:
|
||||||
postgrest: -O2 -Werror -Wall -fwarn-identities -fno-warn-redundant-constraints -optP-Wno-nonportable-include-path
|
postgrest: -O2 -Werror -Wall -fwarn-identities -fno-warn-redundant-constraints -optP-Wno-nonportable-include-path
|
||||||
nix:
|
nix:
|
||||||
|
|||||||
@@ -117,11 +117,11 @@ spec actualPgVersion = describe "authorization" $ do
|
|||||||
it "hides tables from users with invalid JWT" $ do
|
it "hides tables from users with invalid JWT" $ do
|
||||||
let auth = authHeaderJWT "ey9zdGdyZXN0X3Rlc3RfYXV0aG9yIiwiaWQiOiJqZG9lIn0.y4vZuu1dDdwAl0-S00MCRWRYMlJ5YAMSir6Es6WtWx0"
|
let auth = authHeaderJWT "ey9zdGdyZXN0X3Rlc3RfYXV0aG9yIiwiaWQiOiJqZG9lIn0.y4vZuu1dDdwAl0-S00MCRWRYMlJ5YAMSir6Es6WtWx0"
|
||||||
request methodGet "/authors_only" [auth] ""
|
request methodGet "/authors_only" [auth] ""
|
||||||
`shouldRespondWith` [json| {"message":"JWSError (CompactDecodeError \"expected 3 parts, got 2\")"} |]
|
`shouldRespondWith` [json| {"message":"JWSError (CompactDecodeError CompactDecodeError: Expected 3 parts; got 2)"} |]
|
||||||
{ matchStatus = 401
|
{ matchStatus = 401
|
||||||
, matchHeaders = [
|
, matchHeaders = [
|
||||||
"WWW-Authenticate" <:>
|
"WWW-Authenticate" <:>
|
||||||
"Bearer error=\"invalid_token\", error_description=\"JWSError (CompactDecodeError \\\"expected 3 parts, got 2\\\")\""
|
"Bearer error=\"invalid_token\", error_description=\"JWSError (CompactDecodeError CompactDecodeError: Expected 3 parts; got 2)\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user