You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
i try to import IDP metadata xml file in keycloak with ansible and/or curl but i can't
with ansible i use this
name: "import de la conf WAM Realm {{ keycloak_realm_name }} for service Keycloak"
uri:
url: "{{ keycloak_base_url }}/auth/admin/realms/{{ keycloak_realm_name }}/identity-provider/import-config"
method: POST
remote_src: "no"
validate_certs: no
headers:
X-Content-Type-Options: nosniff
Authorization: "Bearer {{ keycloak_token.json.access_token }}"
body_format: form-multipart
body: "IDP-metadata.xml"
status_code:
the log:
},
"json": {
"error": "HTTP 400 Bad Request"
},
"msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request",
"redirected": false,
"referrer_policy": "no-referrer",
"server": "nginx/1.15.10",
"status": 400,
"strict_transport_security": "max-age=15724800; includeSubDomains",
"url": "https://keycloak-sample.com/auth/admin/realms/test/identity-provider/import-config",
"x_content_type_options": "nosniff",
"x_frame_options": "SAMEORIGIN",
"x_xss_protection": "1; mode=block"
}
with curl :
curl -ik -X POST {{ keycloak_base_url }}/auth/admin/realms/{{ keycloak_realm_name }}/identity-provider/import-config -H 'Authorization: Bearer {{ keycloak_token.json.access_token }}' -F file=IDP-metadata.xml
i dont find the problem
All reactions