Hello, How do I perform a "session logout" in the API? I am using the ansible's URI module and so far I tried a few different options, like for example this:
- name: Logout from IdM API uri: url: "https://{{ ipa_master }}/ipa/session/json" headers: Content-type: "application/json" Accept: "application/json" Referer: "https://{{ ipa_master }}/ipa" Cookie: "{{ ipa_session }}" method: POST body_format: json body: | { "id": 0, "method": "session_logout/1", "params": [ { "version": "{{ ipa_api_version | default('2.231') }}" } ] } which gives me the following error: message: 'Invalid JSON-RPC request: params must contain [args, options]' I also tried to simply visit the /ipa/session/session_logout, or the /ipa/session_logout. Both options gave me a 404. So, how do I "logout"? _______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org