Skip to content

Help Configuring OAuth2 Client Credentials Flow for OpenAPI #2528

@dpbevin

Description

@dpbevin

I've been reading up on how to configure authentication and plugins to work with securitySchemes in an OpenAPI definition but I'm struggling to see how to configure the Playground to work with OAuth2 Client Credentials Flow.

The "Login" button seems to trigger an interaction redirect to the Identity Provider (IdP), which wouldn't be the case for client credentials.

I've gone through the docs pretty well but I could have also missed something.

Please can I get some help on how to configure this?

If there's a way to do this though plugins/customisation/etc, without modding the core zudoku, then I'm also open to that approach.

Expected Behaviour

If the OpenAPI definition supports OAuth Client Credentials flow, the user should be prompted to enter the following:

  • Client ID
  • Client Secret
  • Scopes - either a basic string or checkboxes for all scopes listed in the securitySchemes.

This comment describes the problem quite well: #695 (comment)

See Also

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions