I've generated a Python client library for this API by using the online Swagger Codegen at https://generator.swagger.io/. The API uses Bearer authentication:
openapi: 3.0.0
...
paths:
/sandbox/register:
post:
...
security:
- sso_auth: []
...
components:
securitySchemes:
sso_auth:
type: http
scheme: bearer
However, the Configuration
class in generated Python client has no access_token
field.
How to fill the Bearer access token when using the generated client library?
The codegen endpoint POST /gen/clients/{language}
has the authorizationValue
and securityDefinition
parameters - do I need to configure these parameters somehow?
"authorizationValue": {
"value": "string",
"type": "string",
"keyName": "string"
},
"securityDefinition": {
"type": "string",
"description": "string"
}