crash.software
Projects
Pull Requests
Issues
Builds
graphql-engine
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
graphql-engine
Files
🤬
Sign In
release/v2.36
ROOT
/
server
/
tests-py
/
test_jwt.py
Search
History
805 lines
|
ISO-8859-1
|
28 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
datetime
timedelta
timezone
math
json
time
pytest
jwt
init_ws_conn
default_backend
rsa
serialization
YAML
check_query
yaml
format_claims
(conf,claims)
set_claims
(claims,hasura_claims,namespace_path=None)
get_header_fmt
(conf)
mk_authz_header
(conf,token)
AbstractTestJwtBasic
claims
dir
conf
test_jwt_valid_claims_success
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_invalid_role_in_request_header
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_no_allowed_roles_in_claim
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_invalid_allowed_roles_in_claim
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_no_default_role
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_expired
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_invalid_signature
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_no_audience_in_conf
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_no_issuer_in_conf
(self,hge_ctx,jwt_configuration,endpoint)
transact
(self,setup)
setup
(self,postgis,hge_ctx)
gen_rsa_key
()
TestJwtBasicWithRsa
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519
(AbstractTestJwtBasic)
TestJwtBasicWithEs
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndCookie
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndCookie
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndCookie
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndCustomHeader
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndStringifiedJsonClaims
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndStringifiedJsonClaims
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndStringifiedJsonClaims
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndClaimsNamespacePathAtRoot
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndClaimsNamespacePathAtRoot
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndClaimsNamespacePathAtRoot
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndClaimsNamespacePathAtOneLevelOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndClaimsNamespacePathAtOneLevelOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndClaimsNamespacePathAtOneLevelOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndClaimsNamespacePathAtTwoLevelsOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndClaimsNamespacePathAtTwoLevelsOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndClaimsNamespacePathAtTwoLevelsOfNesting
(AbstractTestJwtBasic)
TestJwtBasicWithRsaAndClaimsNamespacePathWithSpecialCharacters
(AbstractTestJwtBasic)
TestJwtBasicWithEd25519AndClaimsNamespacePathWithSpecialCharacters
(AbstractTestJwtBasic)
TestJwtBasicWithEsAndClaimsNamespacePathWithSpecialCharacters
(AbstractTestJwtBasic)
AbstractTestJwtExpirySkew
claims
dir
conf
test_jwt_expiry_leeway
(self,hge_ctx,jwt_configuration,endpoint)
transact
(self,setup)
setup
(self,postgis,hge_ctx)
TestJwtExpirySkewWithRsa
(AbstractTestJwtExpirySkew)
TestJwtExpirySkewWithEd25519
(AbstractTestJwtExpirySkew)
TestJwtExpirySkewWithEs
(AbstractTestJwtExpirySkew)
AbstractTestSubscriptionJwtExpiry
claims
test_jwt_expiry
(self,hge_key,jwt_configuration,ws_client)
TestSubscriptionJwtExpiryWithRsa
(AbstractTestSubscriptionJwtExpiry)
TestSubscriptionJwtExpiryWithEd25519
(AbstractTestSubscriptionJwtExpiry)
TestSubscriptionJwtExpiryWithEs
(AbstractTestSubscriptionJwtExpiry)
AbstractTestJwtAudienceCheck
claims
dir
conf
test_jwt_valid_audience
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_invalid_audience
(self,hge_ctx,jwt_configuration,endpoint)
transact
(self,setup)
setup
(self,postgis,hge_ctx)
TestJwtAudienceCheckWithRsaAndSingleAudience
(AbstractTestJwtAudienceCheck)
TestJwtAudienceCheckWithEd25519AndSingleAudience
(AbstractTestJwtAudienceCheck)
TestJwtAudienceCheckWithEsAndSingleAudience
(AbstractTestJwtAudienceCheck)
TestJwtAudienceCheckWithRsaAndListOfAudiences
(AbstractTestJwtAudienceCheck)
TestJwtAudienceCheckWithEd25519AndListOfAudiences
(AbstractTestJwtAudienceCheck)
TestJwtAudienceCheckWithEsAndListOfAudiences
(AbstractTestJwtAudienceCheck)
AbstractTestJwtIssuerCheck
claims
dir
conf
test_jwt_valid_issuer
(self,hge_ctx,jwt_configuration,endpoint)
test_jwt_invalid_issuer
(self,hge_ctx,jwt_configuration,endpoint)
transact
(self,setup)
setup
(self,postgis,hge_ctx)
TestJwtIssuerCheckWithRsa
(AbstractTestJwtIssuerCheck)
TestJwtIssuerCheckWithEd25519
(AbstractTestJwtIssuerCheck)
TestJwtIssuerCheckWithEs
(AbstractTestJwtIssuerCheck)
All occurrences
Please wait...
Page is in error, reload to recover