Skip to content

Commit dc4cf92

Browse files
committed
SWI-8858 Add OAuth
1 parent 3eae30e commit dc4cf92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1894
-2197
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov=bandwidth
1616

17-
pytest-3.8:
18-
extends: .pytest
19-
image: python:3.8-alpine
2017
pytest-3.9:
2118
extends: .pytest
2219
image: python:3.9-alpine
@@ -29,3 +26,6 @@ pytest-3.11:
2926
pytest-3.12:
3027
extends: .pytest
3128
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.11.0
1+
7.16.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.8"
54
- "3.9"
65
- "3.10"
76
- "3.11"
87
- "3.12"
8+
- "3.13"
99
# uncomment the following if needed
10-
#- "3.12-dev" # 3.12 development branch
10+
#- "3.13-dev" # 3.13 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
55

66
- API version: 1.0.0
77
- Package version: 1.0.0
8-
- Generator version: 7.11.0
8+
- Generator version: 7.16.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)
1111

1212
## Requirements.
1313

14-
Python 3.8+
14+
Python 3.9+
1515

1616
## Installation & Usage
1717
### pip install
@@ -73,6 +73,8 @@ configuration = bandwidth.Configuration(
7373
password = os.environ["PASSWORD"]
7474
)
7575

76+
configuration.access_token = os.environ["ACCESS_TOKEN"]
77+
7678

7779
# Enter a context with an instance of the API client
7880
with bandwidth.ApiClient(configuration) as api_client:
@@ -316,6 +318,14 @@ Authentication schemes defined for the API:
316318

317319
- **Type**: HTTP basic authentication
318320

321+
<a id="OAuth2"></a>
322+
### OAuth2
323+
324+
- **Type**: OAuth
325+
- **Flow**: application
326+
- **Authorization URL**:
327+
- **Scopes**: N/A
328+
319329

320330
## Author
321331

bandwidth.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ info:
88
99
version: 1.0.0
1010
security:
11+
- OAuth2: []
1112
- Basic: []
1213
tags:
1314
- name: Messages
@@ -8095,6 +8096,12 @@ components:
80958096
80968097
80978098
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
8099+
OAuth2:
8100+
type: oauth2
8101+
flows:
8102+
clientCredentials:
8103+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
8104+
scopes: {}
80988105
callbacks:
80998106
inboundCallback:
81008107
'{inboundCallbackUrl}':

0 commit comments

Comments
 (0)