Skip to content

How to specify a custom security scheme name #4774

Answered by timotheeguerin
forik asked this question in Q&A
Discussion options

You must be logged in to vote

If you use model is instead you can achieve that
playground

model MyOAuth2<Scopes extends string[]>
  is OAuth2Auth<
    [
      {
        type: OAuth2FlowType.clientCredentials;
        tokenUrl: "https://example.com/auth/token";
      }
    ],
    Scopes
  >;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@forik
Comment options

@a-akshat
Comment options

Answer selected by forik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants