question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cookie Authentication

See original GitHub issue

Description

OpenAPI Spec v3 supports cookie authentication https://swagger.io/docs/specification/authentication/cookie-authentication/

Currently I have to pass LtpaToken2 as a cookie for authentication However I’m getting the following error “Cannot send apiKey in ‘"cookie"’”

To Reproduce Steps to reproduce the behavior:

  1. Create an api spec that has the following security setup "components": { "securitySchemes": { "CookieAuth": { "type": "apiKey", "in": "cookie", "name": "LtpaToken2" } }, "security": [{ "CookieAuth": [] }],
  2. Spin up oasgraph and try to execute a query
  3. See error message

“message”: “Cannot send apiKey in ‘"cookie"’”,

Expected behavior Query to be executed successfully

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jduffy3commented, May 16, 2019

Hey I have a fix in place would it be possible for me to submit a pull request?

I tried to push locally but my access rights are denied. 😢

1reaction
jduffy3commented, May 14, 2019

Thank you for responding so quickly! 😃 Looking forward to the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cookie Authentication - Swagger
Cookie authentication uses HTTP cookies to authenticate client requests and maintain session information. It works as follows: ... On the successful login, the ......
Read more >
How does cookie based authentication work? - Stack Overflow
A cookie is basically just an item in a dictionary. Each item has a key and a value. For authentication ...
Read more >
Use cookie authentication without ASP.NET Core Identity
The authentication cookie's IsEssential property is set to true by default. Authentication cookies are allowed when a site visitor hasn't ...
Read more >
Cookie vs Token authentication - Section.io
A Cookie-based authentication uses the HTTP cookies to authenticate the client requests and maintain session information on the server over ...
Read more >
Cookies - Auth0
Cookie -based authentication is implemented by each web platform differently, but at the end of the day, they all end up setting some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found