Ricardo
08/27/2019, 4:01 PMdave
08/27/2019, 4:02 PMdave
08/27/2019, 4:03 PMRicardo
08/27/2019, 4:06 PMRicardo
08/27/2019, 4:06 PMdave
08/27/2019, 4:10 PMAfter you have defined the security schemes in the securitySchemes section, you can apply them to the whole API or individual operations by adding the security section on the root level or operation level, respectively. When used on the root level, security applies the specified security schemes globally to all API operations, unless overridden on the operation level. In the following example, the API calls can be authenticated using either an API key or OAuth 2. The ApiKeyAuth and OAuth2 names refer to the schemes previously defined in securitySchemes.
dave
08/27/2019, 4:13 PMdave
08/27/2019, 4:14 PMRicardo
08/27/2019, 4:15 PMOR
them together easily.Ricardo
08/27/2019, 4:16 PMhttp4k-contract
already incorrectly composes security definition filters and considered it a separate issue.Ricardo
08/27/2019, 4:17 PMNoOp
filters locally.Ricardo
08/27/2019, 4:17 PMdave
08/27/2019, 7:39 PMdave
08/27/2019, 8:47 PMdave
08/27/2019, 8:58 PMRicardo
08/28/2019, 8:24 AMOrSecurity
and AndSecurity
construct, very readable.Ricardo
08/28/2019, 8:25 AMNoOp
for our filtering in http4k and rely on Google Cloud Endpoints for auth, but if we switched we would want to OR
security filters together.Ricardo
08/28/2019, 8:25 AMdave
08/28/2019, 8:55 AMmultiple-securities
going so you can track progress.Ricardo
08/28/2019, 8:57 AMhttp4k
.Ricardo
08/28/2019, 8:58 AMdave
08/28/2019, 9:05 AMRicardo
08/28/2019, 9:16 AMRicardo
08/28/2019, 9:17 AMdave
08/28/2019, 9:48 AMRicardo
08/28/2019, 1:06 PMhttp4k-contract
to support some of the other Google Cloud Endpoints.Ricardo
08/28/2019, 1:07 PMdave
08/28/2019, 1:08 PM