Browse Source
Merge pull request #139 from shpaker/bugfix/wrong_param_in_validation_example
fix wrong param in example from readme
master
Marcos Pereira
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
README.md
-
docs/source/index.rst
|
|
@ -98,7 +98,7 @@ token_info = keycloak_openid.introspect(token['access_token']) |
|
|
|
|
|
|
|
# Decode Token |
|
|
|
KEYCLOAK_PUBLIC_KEY = keycloak_openid.public_key() |
|
|
|
options = {"verify_signature": True, "verify_aud": True, "exp": True} |
|
|
|
options = {"verify_signature": True, "verify_aud": True, "verify_exp": True} |
|
|
|
token_info = keycloak_openid.decode_token(token['access_token'], key=KEYCLOAK_PUBLIC_KEY, options=options) |
|
|
|
|
|
|
|
# Get permissions by token |
|
|
|
|
|
@ -132,7 +132,7 @@ Main methods:: |
|
|
|
|
|
|
|
# Decode Token |
|
|
|
KEYCLOAK_PUBLIC_KEY = "secret" |
|
|
|
options = {"verify_signature": True, "verify_aud": True, "exp": True} |
|
|
|
options = {"verify_signature": True, "verify_aud": True, "verify_exp": True} |
|
|
|
token_info = keycloak_openid.decode_token(token['access_token'], key=KEYCLOAK_PUBLIC_KEY, options=options) |
|
|
|
|
|
|
|
# Get permissions by token |
|
|
|