Skip to content

Add basic authentication support for Swagger JSON - #878

Open
bthrall wants to merge 1 commit into
pistacheio:masterfrom
bthrall:swagger-auth-pr
Open

bthrall wants to merge 1 commit into
pistacheio:masterfrom
bthrall:swagger-auth-pr

Conversation

@bthrall

@bthrall bthrall commented Apr 1, 2021

Copy link
Copy Markdown

Multiple authentication schemas are supported, for both query and header locations.

Security is only applied to the root at this time.

Multiple authentication schemas are supported, for both query and header locations.

Security is only applied to the root at this time.
@dennisjenkins75

Copy link
Copy Markdown
Collaborator

IMHO, we should not be making changes to rapidjson. Pistache should change to pull in a read-only copy of rapidjson anyway.

Also, your PR lacks any new unit tests to cover the new logic. Please add some appropriate unit tests.

@Tachi107

Tachi107 commented Apr 2, 2021

Copy link
Copy Markdown
Member

IMHO, we should not be making changes to rapidjson

include/pistache/thirdparty/serializer/rapidjson.h is not really part of RapidJSON, it is just a serializer used for Swagger/OpenAPI that uses RapidJSON to handle JSON (or something along these lines, I've never used nor looked into it). I don't know why it is in the thirdparty directory since it is part of Pistache.

@kiplingw

Copy link
Copy Markdown
Member

Hey @bthrall. Just checking in, but do you still intend to work on this PR? If so, you may want to start by rebasing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants