api-layer icon indicating copy to clipboard operation
api-layer copied to clipboard

JWK endpoint returns XML

Open achmelo opened this issue 1 year ago • 0 comments

Describe the bug API ML when running with keyrings returns JWK in XML format as default and only returns JSON when requested in the header.

Steps to Reproduce

  1. Start Zowe with keyring and SAF auth provider
  2. request /gateway/api/v1/auth/keys/public/current

Expected behavior Should return JSON as default.

Screenshots If applicable, add screenshots to help explain your problem.

Response: <Map> RSA AQAB 6Jn2RNigamQkLw1Govig13paixGfiPJWSYEAt56l36lBTsVz3D9adC4WKsrBXyFpxCYjQwm8IGhFszFokMS5i01gPWyQFT17OpPaPzjDKs2ho8SF5d91yuVudZyJE7KJGmUF-VkYg28qEDqw5If2UnTFED00YXeKhIvxFIj5SKPfTF0SWoPUDXrElgZ0H1v6pThu4HLMvP9QDZKiXePqUv8uUMjRqJL4wZg8d728i0IS21Y8cCPW6mAVkGtoRZ-AvwP1waPHeB7d027LEhqAzxobL2Zpr6KDK52a-PRSwSg0flKvNWFdnFaGvXwhZ0xQfnHIEwjzvbWyPdbquh3U9Q </Map> expected { "keys": [ { "kty": "RSA", "e": "AQAB", "n": "6Jn2RNigamQkLw1Govig13paixGfiPJWSYEAt56l36lBTsVz3D9adC4WKsrBXyFpxCYjQwm8IGhFszFokMS5i01gPWyQFT17OpPaPzjDKs2ho8SF5d91yuVudZyJE7KJGmUF-VkYg28qEDqw5If2UnTFED00YXeKhIvxFIj5SKPfTF0SWoPUDXrElgZ0H1v6pThu4HLMvP9QDZKiXePqUv8uUMjRqJL4wZg8d728i0IS21Y8cCPW6mAVkGtoRZ-AvwP1waPHeB7d027LEhqAzxobL2Zpr6KDK52a-PRSwSg0flKvNWFdnFaGvXwhZ0xQfnHIEwjzvbWyPdbquh3U9Q" } ] }

Details

  • Version and build number: [e.g. 0.4.4-SNAPSHOT build # 155]
  • Test environment: [either defined Zowe test environment: Marist (1, 2, 3), River, or your own environment: z/OS version and z/OSMF version]

API Catalog Web UI (in case of API Catalog issue):

  • OS: [e.g. macOS, Windows]
  • Browser [e.g. Chrome, Safari]
  • Version [e.g. 71.0.3578.98]

REST API client (in case of REST API issue):

  • Technology: [e.g. Spring Boot, Node.js]
  • OS: [e.g. Windows 10]

Additional context Add any other context about the problem here.

Willingness to help If you are willing to help with debugging and reproducing the problem or with fixing the problem, please state your willingness to assist in the created issue.

https://github.com/zowe/api-layer/wiki/Issue-management

achmelo avatar Jun 21 '23 12:06 achmelo