SchemeExpr defines a security scheme used to authenticate against the method being designed.
| 61 | // SchemeExpr defines a security scheme used to authenticate against the |
| 62 | // method being designed. |
| 63 | SchemeExpr struct { |
| 64 | // Kind is the sort of security scheme this object represents. |
| 65 | Kind SchemeKind |
| 66 | // SchemeName is the name of the security scheme, e.g. "googAuth", |
| 67 | // "my_big_token", "jwt". |
| 68 | SchemeName string |
| 69 | // Description describes the security scheme e.g. "Google OAuth2" |
| 70 | Description string |
| 71 | // In determines the location of the API key, one of "header" or |
| 72 | // "query". |
| 73 | In string |
| 74 | // Name refers to a header or parameter name, based on In's |
| 75 | // value. |
| 76 | Name string |
| 77 | // BearerFormat is a hint to identify how the bearer token is |
| 78 | // formatted. It is emitted in OpenAPI v3 bearerFormat when set. |
| 79 | BearerFormat string |
| 80 | // Scopes lists the Basic, APIKey, Bearer, JWT or OAuth2 scopes. |
| 81 | Scopes []*ScopeExpr |
| 82 | // Flows determine the oauth2 flows supported by this scheme. |
| 83 | Flows []*FlowExpr |
| 84 | // Meta is a list of key/value pairs |
| 85 | Meta MetaExpr |
| 86 | } |
| 87 | |
| 88 | // FlowExpr describes a specific OAuth2 flow. |
| 89 | FlowExpr struct { |
nothing calls this directly
no outgoing calls
no test coverage detected