|
@ -158,6 +158,14 @@ Main methods:: |
|
|
# realm_name="example_realm", |
|
|
# realm_name="example_realm", |
|
|
# verify=True, |
|
|
# verify=True, |
|
|
# custom_headers={'CustomHeader': 'value'}) |
|
|
# custom_headers={'CustomHeader': 'value'}) |
|
|
|
|
|
# |
|
|
|
|
|
# You can also authenticate with client_id and client_secret |
|
|
|
|
|
#keycloak_admin = KeycloakAdmin(server_url="http://localhost:8080/auth/", |
|
|
|
|
|
# client_id="example_client", |
|
|
|
|
|
# client_secret_key="secret", |
|
|
|
|
|
# realm_name="example_realm", |
|
|
|
|
|
# verify=True, |
|
|
|
|
|
# custom_headers={'CustomHeader': 'value'}) |
|
|
|
|
|
|
|
|
# Add user |
|
|
# Add user |
|
|
new_user = keycloak_admin.create_user({"email": "example@example.com", |
|
|
new_user = keycloak_admin.create_user({"email": "example@example.com", |
|
|