You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BasicAuth is defined in the servant package, so I think it makes sense to have instance HasOpenApi sub => HasOpenApi (BasicAuth realm a :> sub) in servant-openapi3.
There is an old issue about it in servant-swagger: haskell-servant/servant-swagger#34. The last comment there recommends using servant-auth instead, but BasicAuth still exists in servant and is not deprecated, so I think this instance should be useful for some projects. I actually ported this implementation and got something like
We are also receiving requests on the servant side ( haskell-servant/servant#1505 ), so I think there is a need for these instances (and servant-openapi3 definitely looks like the right place).
BasicAuth is defined in the
servant
package, so I think it makes sense to haveinstance HasOpenApi sub => HasOpenApi (BasicAuth realm a :> sub)
inservant-openapi3
.There is an old issue about it in
servant-swagger
: haskell-servant/servant-swagger#34. The last comment there recommends usingservant-auth
instead, butBasicAuth
still exists inservant
and is not deprecated, so I think this instance should be useful for some projects. I actually ported this implementation and got something likewhich looks in line with https://swagger.io/docs/specification/authentication/basic-authentication/.
So now I can make a PR with this instance, but before doing that I'd like to check whether it's actually needed 🙂
The text was updated successfully, but these errors were encountered: