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

OpenAPI showing 'basic' auth as option in securityDefinitions, should indicate use of Authorization header #1826

Closed
jeremyschulman opened this issue Jan 19, 2018 · 0 comments · Fixed by #2210
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremyschulman
Copy link

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 2.7
  • NetBox version: 2.2.8

Description

* A list of the steps needed for someone else to reproduce the bug
  1. get the openapi spec; for example, running a laptop instance, this URL would be: "http://0.0.0.0:32768/api/docs/?format=openapi". or you could use use curl or wget.

  2. at the very bottom, you will see "securityDefinitions" indicating basic auth. basic auth is not supported in Netbox 2.2.8.

2018-01-19_09-05-41

    * A description of the expected and observed behavior

Here is an example of a system that uses request headers to store a token. In this example, the header key is called "AUTHTOKEN". For Netbox, this would be "Authorization", as documented on the read-the-docs site.

2018-01-19_09-10-24

    * Any relevant error messages (screenshots may also help)
@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application help wanted status: accepted This issue has been accepted for implementation labels Jan 31, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants