forked from loafle/openapi-generator-original
[rust] fix use of isBasic condition (#15532)
This commit is contained in:
@@ -143,6 +143,8 @@ Example
|
||||
{{! TODO: Add Bearer token authentication }}
|
||||
```
|
||||
{{/isBasicBearer}}
|
||||
{{#isHttpSignature}}- **Type**: HTTP signature authentication
|
||||
{{/isHttpSignature}}
|
||||
{{#isOAuth}}- **Type**: OAuth
|
||||
- **Flow**: {{{flow}}}
|
||||
- **Authorization URL**: {{{authorizationUrl}}}
|
||||
|
||||
@@ -49,9 +49,9 @@ impl<C: hyper::client::connect::Connect>{{{classname}}} for {{{classname}}}Clien
|
||||
param_name: "{{{keyParamName}}}".to_owned(),
|
||||
}))
|
||||
{{/isApiKey}}
|
||||
{{#isBasic}}
|
||||
{{#isBasicBasic}}
|
||||
.with_auth(__internal_request::Auth::Basic)
|
||||
{{/isBasic}}
|
||||
{{/isBasicBasic}}
|
||||
{{#isOAuth}}
|
||||
.with_auth(__internal_request::Auth::Oauth)
|
||||
{{/isOAuth}}
|
||||
|
||||
Reference in New Issue
Block a user