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.

Security Definition other than api_key is not getting parsed

See original GitHub issue

I am using token based authentication for my APIs. So in Swagger definition, I give both basic auth and api_key as security definition. But in Slate markdown only api_key is getting added leaving behind basic method. My swagger JSON includes both the security definition perfectly.

swagger_doc.json

.... "securityDefinitions":{ "basic": { "type":"basic", "description":"Access Token corresponding to the Client needs to be obtained before accessing any authenticated routes", "in":"header", "name":"basic" }, "api_key": { "type":"apiKey", "in":"header", "name":"api_key" } }, "host":"http://example.com", ...

Slate Markdown Snippet

screen shot 2017-11-14 at 11 30 49 pm

I could not figure out how to include other ways of authentication defined in OpenAPI Specification.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MikeRalphsoncommented, Nov 15, 2017

We are looking to use widdershins for our production. It would be great if the stable release is at the earliest. Thanks a ton 😃

It will be released by the end of the month. Please report any further issues with the beta!

0reactions
MikeRalphsoncommented, Nov 15, 2017

Cool. Thanks for the kind words!

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Key security definition 'bearerAuth' has unexpected name ...
I am importing a swagger definition in the AWS API gateway, and its failing , first I tried securitySchemes: bearerAuth: type: http scheme: ......
Read more >
Allow optional Authorizations · Issue #14 - GitHub
This is an enhancement request, to allow optional authorizations. Not sure if this would be useful for others, but it would be for...
Read more >
REST API Guide | Parse
Getting Started. The REST API lets you interact with Parse Server from anything that can send an HTTP request. There are many things...
Read more >
API keys - Algolia
Generate API keys with limitations to secure your Algolia implementation.
Read more >
User Guide - Django REST Framework API Key - GitHub Pages
To retrieve an APIKey instance based on its generated key (which is not stored in the database) use the .get_from_key() method on the...
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