Browse Source

Updated docks

hotfix/merge
Marcos Pereira 7 years ago
parent
commit
82d90e8612
  1. 1
      CHANGELOG.md
  2. 11
      keycloak/keycloak_admin.py
  3. 10
      keycloak/keycloak_openid.py

1
CHANGELOG.md

@ -39,3 +39,4 @@ entitlement, instropect)
* Add groups functions * Add groups functions
* Add Admin Tasks for user and client role management * Add Admin Tasks for user and client role management
* Function to trigger user sync from provider * Function to trigger user sync from provider
* Optional parameter: verify

11
keycloak/keycloak_admin.py

@ -39,7 +39,16 @@ import json
class KeycloakAdmin: 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._username = username
self._password = password self._password = password
self._client_id = client_id self._client_id = client_id

10
keycloak/keycloak_openid.py

@ -34,7 +34,15 @@ import json
class KeycloakOpenID: 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_id = client_id
self._client_secret_key = client_secret_key self._client_secret_key = client_secret_key
self._realm_name = realm_name self._realm_name = realm_name

Loading…
Cancel
Save