Replies: 5 comments 5 replies
-
@miqui I'm moving this over to a discussion in the "ideas" category because that's where folks are looking for ideas to review right now. We're only using issues for a few things in this repo that are short-term actionable. |
Beta Was this translation helpful? Give feedback.
-
There are valid use cases for HTTP basic auth and OpenAPI is here to enable interoperable descriptions, I don't think the standard should judge if someone should be doing that or not, which it sounds like what is being suggested here |
Beta Was this translation helpful? Give feedback.
-
I think the title is ambiguous at best. |
Beta Was this translation helpful? Give feedback.
-
For me the key thing is what an API consumer and their applications can actually do with this information. Flagging something as deprecated and leaving it at that is not massively informative unless its accompanied by a bunch of other information describing the reasons for deprecation, when the Security Requirement will be sunsetted, etc. etc. Just because something like Basic Auth is used less commonly doesn't mean its not used with good reason, and by design. We should probably look into any other such properties to support this approach and decide on whether it provides valuable information for the API consumer - and therefore should be in the specification - or whether that information bloats the specification and belongs elsewhere. |
Beta Was this translation helpful? Give feedback.
-
exactly! @rafalkrupinski . Just the other day I was doing some c++ coding with CLion IDE from Intellij. I tried including ```#include "strings.h" and the IDE gave me a deprecation warning with a SUGGESTION on what is the preferred include. The spec "has an education" component to it to guide folks in the API space. No sticks, just guidance. At the end of the day you own your own design choices. |
Beta Was this translation helpful? Give feedback.
-
Although the OpenAPI specification supports multiple security schemas and associated schemes
Of this set http (for basic is most likely the most insecure. There is plenty of documentation concerning API security that suggests that a basic scheme is a bad idea. However, to facilitate the transition of an API that is using HTTP basic to a more secure scheme, I propose to add the
deprecated
attribute to the Security Scheme Object of the specification. Note, that there is some mention of deprecation in the 3.1 specification, but it seems to imply that deprecation is the responsibility of the scheme type (Oauth 2, implicit flow) owner.Example:
The API's behavior could be reflected (i.e. signal to consumers) by using something similar to Deprecation HTTP header field draft for the deprecated scheme.
Note:
General references
Beta Was this translation helpful? Give feedback.
All reactions