okta-cli
okta-cli copied to clipboard
Add ability to handle non-JSON endpoints
Add an option to pass arbitrary HTTP request headers in the raw
command, for endpoints such as [app]/sso/saml/metadata
that are not JSON. Also do not attempt to parse the body as JSON if the content type indicates something other than JSON.
Example usage:
$ okta-cli raw -H 'Accept: application/xml' 'apps/id/sso/saml/metadata'
<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor entityID="http://www.okta.com/...
oh! love the MR, I kinda missed this. will try to resolve the conflicts soon :)
Hi @flypenguin, I rebased onto the current main to resolve the conflicts.