AkhilVinayak
6 years agoOccasional Visitor
swagger 3.0 cookie
Hi All,
I'm facing multiple issues with swagger cookie authentication. I'm not able to recieve cookie in my backend application eventhough i'm sending it through header paramenters.
These are my inputs:
parameters:
- in: cookie
name: AUTX-TOKEN
schema:
type: string
required: true
- in: cookie
name: XXXX-TOKEN
schema:
type: string
required: true
components:
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: XXXX-TOKEN
cookieAuthb:
type: apiKey
in: cookie
name: AUTX-TOKEN
security:
- cookieAuthb: []
cookieAuth: []
BUT i'm not recieving these cookies here in my application , so its throwing validation error. Someone please help me.
And also,
the following code is from swagger api documentaion. I'm not understanding that is inside 'example'.
- headers:
Set-Cookie:
schema:
type: string
example: JSESSIONID=abcde12345; Path=/; HttpOnly