Skip to content

Fix Workaround for OpenAPI Generator Issue #52

@telday

Description

@telday

Summary

We had to add a workaround for an issue in OpenAPI generator (and partly in Conjur) which caused the request to be sent with a Content-Type: application/json header by default, even with an empty request body.

In order to fix the issue temporarily I added a body to the /host_factory_tokens DELETE method, which tricks the generator into using the text/plain MIME type instead of application/json. This workaround should be removed as soon as either Conjur is updated to handle a request like this properly, or the OpenAPI generator is fixed.

Here is the relevant change in the API spec. The integration test for revoke_host_token will also have to be updated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions