diff --git a/docs/source/conf.py b/docs/source/conf.py index 42a0718..1549468 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -60,9 +60,9 @@ author = 'Marcos Pereira' # built documents. # # The short X.Y version. -version = '0.4.1' +version = '0.5.0' # The full version, including alpha/beta/rc tags. -release = '0.4.1' +release = '0.5.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/index.rst b/docs/source/index.rst index b9e5954..3cd8f61 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -45,7 +45,7 @@ python-keycloak depends on: * Python 3 * `requests `_ -* `PyJWT `_ +* `python-jose `_ Tests Dependencies ------------------ @@ -108,3 +108,8 @@ Main methods:: # Instropect Token token_info = keycloak.instropect(token['access_token'])) + # Decode Token + KEYCLOAK_PUBLIC_KEY = "secret" + options = {"verify_signature": True, "verify_aud": True, "exp": True} + token_info = keycloak.decode_token(token['access_token'], key=KEYCLOAK_PUBLIC_KEY, options=options) + diff --git a/setup.py b/setup.py index 0b64cfb..3ec5d30 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup setup( name='python-keycloak', - version='0.4.1', + version='0.5.0', url='https://github.com/marcospereirampj/python-keycloak', license='GNU General Public License - V3', author='Marcos Pereira',