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
There are a number of common approaches for authenticating/authorizing requests to an API. The OpenAPI securitySchemes and security requirements are intended to document the authn/authz requirements of operations in an API description. I think we should develop practical guidance for how the common authn/authz mechanisms should be or can be described in OpenAPI documents.
Some of the common approaches that should be described are:
Authentication through log in on a web page, possibly with two-factor auth, that generates a cookie that is used as proof of authentication on subsequent requests.
OAuth2 authentication that produces a JWT or other token as proof of auth
OIDC authentication that produces a JWT
Bearer token authentication where the token is obtained from some known source