From 82d90e861280bfe17cc23d822874f1fbd213d8d8 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Thu, 25 Jan 2018 20:23:53 -0200 Subject: [PATCH] Updated docks --- CHANGELOG.md | 3 ++- keycloak/keycloak_admin.py | 11 ++++++++++- keycloak/keycloak_openid.py | 10 +++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b90ae2..a14d8be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,4 +38,5 @@ entitlement, instropect) * Add groups functions * Add Admin Tasks for user and client role management -* Function to trigger user sync from provider \ No newline at end of file +* Function to trigger user sync from provider +* Optional parameter: verify \ No newline at end of file diff --git a/keycloak/keycloak_admin.py b/keycloak/keycloak_admin.py index 068f29b..17e2c12 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -39,7 +39,16 @@ import json class KeycloakAdmin: - def __init__(self, server_url, verify, username, password, realm_name='master', client_id='admin-cli'): + def __init__(self, server_url, username, password, realm_name='master', client_id='admin-cli', verify=True): + """ + + :param server_url: Keycloak server url + :param username: admin username + :param password: admin password + :param realm_name: realm name + :param client_id: client id + :param verify: True if want check connection SSL + """ self._username = username self._password = password self._client_id = client_id diff --git a/keycloak/keycloak_openid.py b/keycloak/keycloak_openid.py index 0f7b446..f1dcde4 100644 --- a/keycloak/keycloak_openid.py +++ b/keycloak/keycloak_openid.py @@ -34,7 +34,15 @@ import json class KeycloakOpenID: - def __init__(self, server_url, verify, client_id, realm_name, client_secret_key=None): + def __init__(self, server_url, realm_name, client_id, client_secret_key=None, verify=True): + """ + + :param server_url: Keycloak server url + :param client_id: client id + :param realm_name: realm name + :param client_secret_key: client secret key + :param verify: True if want check connection SSL + """ self._client_id = client_id self._client_secret_key = client_secret_key self._realm_name = realm_name