Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

securityDefinitions not supported #12

Closed
TuureKaunisto opened this issue Apr 26, 2017 · 2 comments
Closed

securityDefinitions not supported #12

TuureKaunisto opened this issue Apr 26, 2017 · 2 comments

Comments

@TuureKaunisto
Copy link

I noticed securityDefinitions are not supported or at least the authorize button does not appear like it does in Petstore with a valid security definition:

securityDefinitions: {
   api_key: {
      type: "apiKey",
      name: "api_key",
      in: "header"
   }
}

This is most likely due to an old version of Sawgger UI. How about loading the dependencies from a CDN ( https://cdnjs.com/libraries/swagger-ui ) or NPM?

@scottie1984
Copy link
Owner

Is it related to this issue:

swagger-api/swagger-ui#1108

My next task is to update the version of Swagger UI, however I can't use the a CDN or NPM as I modify one of the files - certainly without having to make significant changes.

@TuureKaunisto
Copy link
Author

The issue you linked is not related since the security definitions do work when I explore the JSON with the latest version of Swagger UI.

Good to know that you're planning to update the Swagger UI version! :) I didn't know you had to make changes to the Swagger UI files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants