Forum Discussion

AkhilVinayak's avatar
AkhilVinayak
Occasional Visitor
6 years ago

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'.

  1. headers:
    Set-Cookie:
    schema:
    type: string
    example: JSESSIONID=abcde12345; Path=/; HttpOnly

 

No RepliesBe the first to reply