add verify steps for quarkus/keycloak_realm

This commit is contained in:
Guido Grazioli 2024-07-18 13:01:01 +02:00
parent 11aab0f5e2
commit a35c963a65
No known key found for this signature in database
GPG key ID: 22C8C31EF2BC093B

View file

@ -89,7 +89,7 @@
- name: Verify token api call - name: Verify token api call
ansible.builtin.uri: ansible.builtin.uri:
url: "https://localhost:8443/realms/master/protocol/openid-connect/token" url: "https://instance:8443/realms/master/protocol/openid-connect/token"
method: POST method: POST
body: "client_id=admin-cli&username=admin&password={{ keycloak_admin_password }}&grant_type=password" body: "client_id=admin-cli&username=admin&password={{ keycloak_admin_password }}&grant_type=password"
validate_certs: no validate_certs: no
@ -100,7 +100,7 @@
- name: "Get Clients" - name: "Get Clients"
ansible.builtin.uri: ansible.builtin.uri:
url: "https://localhost:8443/admin/realms/TestRealm/clients" url: "https://instance:8443/admin/realms/TestRealm/clients"
headers: headers:
validate_certs: false validate_certs: false
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}" Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
@ -112,7 +112,7 @@
- name: "Get Client {{ keycloak_client_uuid }}" - name: "Get Client {{ keycloak_client_uuid }}"
ansible.builtin.uri: ansible.builtin.uri:
url: "https://localhost:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}" url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}"
headers: headers:
validate_certs: false validate_certs: false
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}" Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
@ -120,7 +120,7 @@
- name: "Get Client roles" - name: "Get Client roles"
ansible.builtin.uri: ansible.builtin.uri:
url: "https://localhost:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}/roles" url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}/roles"
headers: headers:
validate_certs: false validate_certs: false
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}" Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"