[rust] fix use of isBasic condition (#15532)

This commit is contained in:
Tiffany Marrel
2023-05-24 08:43:06 +02:00
committed by GitHub
parent 1a483b2c9a
commit 358397fe3f
2 changed files with 4 additions and 2 deletions

View File

@@ -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}}}

View File

@@ -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}}