ePages-de / ePages-de/restdocs-api-spec

Doesn't it support setting up authentication for cookies?

Open
#256 0 comments 7 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
427
Forks
116
Avg merge
23h 54m
Merged PRs (30d)
1

Description

Hi. I'm using restdoc mockmvc + swagger-ui.

I'm using openapi 3.0.1 and need to set securitySchemes.
Looking at the code, it seems that the SecurityRequirementsHandler is affecting the creation of the securityRequirements field.

Looking at your code, it seems to only support 'Basic' and 'Bearer' authentication using the Authorization property of the Header.

Could you please add Cookie authorization here as well?
In the end, the Open API form you want to convert looks like this

```yaml
components:
securitySchemes:
cookieAuth: # arbitrary name for the security scheme; will be used in the "security" key later
type: apiKey
in: cookie
name: JSESSIONID # cookie name
```

P.S. This post is written with a translator. Please forgive me if the sentences are not smooth.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.