api-layer
api-layer copied to clipboard
JWK endpoint returns XML
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
- Start Zowe with keyring and SAF auth provider
- 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>
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