Skip to content

OAuth2SchemeAttribute

1 min read

Import: import system.webapi;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

OAuth2SchemeAttribute

Declares an OAuth2 authorization-code scheme for a security dependency.

public struct OAuth2SchemeAttribute

id

Security scheme name published in the OpenAPI document.

public id: string

authorization_url

Endpoint where the user authorizes this application.

public authorization_url: string

token_url

Provider endpoint used to exchange authorization codes for tokens.

public token_url: string

scopes

Space-separated permissions granted to this account or token.

public scopes: Option<string>