|
@ -98,7 +98,8 @@ from keycloak import KeycloakAdmin |
|
|
keycloak_admin = KeycloakAdmin(server_url="http://localhost:8080/auth/", |
|
|
keycloak_admin = KeycloakAdmin(server_url="http://localhost:8080/auth/", |
|
|
username='example-admin', |
|
|
username='example-admin', |
|
|
password='secret', |
|
|
password='secret', |
|
|
realm_name="example_realm") |
|
|
|
|
|
|
|
|
realm_name="example_realm", |
|
|
|
|
|
verify=True) |
|
|
|
|
|
|
|
|
# Add user |
|
|
# Add user |
|
|
new_user = keycloak_admin.create_user({"email": "example@example.com", |
|
|
new_user = keycloak_admin.create_user({"email": "example@example.com", |
|
|