Add support for basic auth #823
johnthagen
started this conversation in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
OpenAPI 3 supports expressing basic auth support: https://swagger.io/docs/specification/authentication/basic-authentication/
While basic auth is often not ideal for production, during development basic auth can be quite handy. Currently it is not possible to directly use basic auth with the generated Python client.
Describe the solution you'd like
Detect if an API supports basic auth and provide it as an alternative
AuthenticatedClient
.An example implementation:
Describe alternatives you've considered
The
AuthenticatedClient
could be made to take either atoken
orusername
/password
.Beta Was this translation helpful? Give feedback.
All reactions