Skip to content

Add descriptions and examples of common API authentication scenarios #126

@mikekistler

Description

@mikekistler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions