From b76e209ab7bdf36e8f35b4999ec7dd0290c44648 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Thu, 24 Aug 2017 09:42:15 -0300 Subject: [PATCH] Fixed docs. --- README.md | 6 +++--- docs/source/conf.py | 4 ++-- docs/source/index.rst | 6 +++--- setup.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1200c4a..89b7096 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ rpt = keycloak.entitlement(token['access_token'], "resource_id") token_rpt_info = keycloak.instropect(keycloak.instropect(token['access_token'], rpt=rpt['rpt'], token_type_hint="requesting_party_token")) -# Instropect Token -token_info = keycloak.instropect(token['access_token'])) +# Introspect Token +token_info = keycloak.introspect(token['access_token'])) # Decode Token KEYCLOAK_PUBLIC_KEY = "secret" @@ -87,6 +87,6 @@ token_info = keycloak.decode_token(token['access_token'], key=KEYCLOAK_PUBLIC_KE token = keycloak.token("user", "password") keycloak.load_authorization_config("example-authz-config.json") policies = keycloak.get_policies(token['access_token'], method_token_info='decode', key=KEYCLOAK_PUBLIC_KEY) -permissions = keycloak.get_permissions(token['access_token'], method_token_info='instrospect') +permissions = keycloak.get_permissions(token['access_token'], method_token_info='introspect') ``` \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 02829e9..b631bc1 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.8.0' +version = '0.8.2' # The full version, including alpha/beta/rc tags. -release = '0.8.0' +release = '0.8.2' # 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 1da74f9..74e1ddc 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -105,8 +105,8 @@ Main methods:: token_rpt_info = keycloak.instropect(keycloak.instropect(token['access_token'], rpt=rpt['rpt'], token_type_hint="requesting_party_token")) - # Instropect Token - token_info = keycloak.instropect(token['access_token'])) + # Introspect Token + token_info = keycloak.introspect(token['access_token'])) # Decode Token KEYCLOAK_PUBLIC_KEY = "secret" @@ -117,5 +117,5 @@ Main methods:: token = keycloak.token("user", "password") keycloak.load_authorization_config("example-authz-config.json") policies = keycloak.get_policies(token['access_token'], method_token_info='decode', key=KEYCLOAK_PUBLIC_KEY) - permissions = keycloak.get_permissions(token['access_token'], method_token_info='instrospect') + permissions = keycloak.get_permissions(token['access_token'], method_token_info='introspect') diff --git a/setup.py b/setup.py index 22dd342..2d7ac5c 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup setup( name='python-keycloak', - version='0.8.0', + version='0.8.2', url='https://github.com/marcospereirampj/python-keycloak', license='GNU General Public License - V3', author='Marcos Pereira',