From 3958946e2ed0222ffa9c4289f8678884bbdf19ab Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Mon, 21 Aug 2017 11:33:58 -0300 Subject: [PATCH] Updated docs. --- docs/source/conf.py | 4 ++-- docs/source/index.rst | 7 ++++++- setup.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) 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',