Skip to content

Commit 96ef4dc

Browse files
Updated SDK with the latest management yaml specifications (#485)
* - Added api.yaml management spec file containing latest openapi specs. - Updated generate.sh to use directly openapi-generator-cli-7.7.0.jar file to generate the SDK. - Removed the unused constants from constants.py and constants.mustache files. - Remove the update_config.py script used to generate constants in config.yaml file. - Fixed the failing integration tests and related cassettes for the SDK. * - Added pagination support to the SDK. - Added test file for the pagination support. - Added missing files from the previous commit. * - Added integration tests for the following api files. - okta/api/api_service_integrations_api.py - okta/api/application_cross_app_access_connections_api.py - okta/api/application_features_api.py - okta/api/application_policies_api.py - okta/api/application_sso_api.py - okta/api/application_sso_federated_claims_api.py - okta/api/application_sso_public_keys_api.py - okta/api/associated_domain_customizations_api.py - okta/api/attack_protection_api.py - okta/api/application_features_api.py * - Added integration tests for the following api files. - okta/api/authenticator_api.py - okta/api/authorization_server_assoc_api.py - okta/api/authorization_server_clients_api.py - okta/api/authorization_server_rules_api.py - okta/api/custom_domain_api.py - okta/api/custom_pages_api.py * - Deleted old API files which doesn't exist in the new YAML specs. - In the themes_api.py modified the code to accept the file parameter and send it further in the request. - In the http_client.py, handled the code to accept file data in the request and set it in the aiohttp request. - Updated ENUM of OtpTotpAlgorithm according to the API results. - Added missing import statement in the api_client.py and api_client.mustache. - Added integration tests for the device_posture_check_api.py file. * - Fixed File attribute empty issue. Assigned file parameter to form field. - Fixed model enum issues. - Added fixes to api.yaml file. * - Updated README.md CHANGELOG.md files. - Updated mustache templates. * - Added updates for next release information under CHANGELOG.md. - Added PAGINATION_GUIDE.md. - Updated related setup.mustache and setup.py file. * - Ran autoflake and autopep8 command changes. * - Resolved Flake8 errors. * - Resolved Flake8 errors for the schema files under models directory. * - Resolved Flake8 errors for the files under okta directory. * - Fixed lint issue with error_messages.py. * - Updated CHANGELOG.md with the information regarding new/updated/removed API methods across API directory. - Added content of PAGINATION_GUIDE.md to README.md. - Removed docs directory information from README.md. - Deleted travis and gitlab files as they are not being used. - Updated name of the version from 3.0.1 to 3.1.0 as this is a major release to 3.0.0. * - Removed the environment variable declaration from client.mustache and client.py. - Reformatted Prerequisites section from README.md and CONTRIBUTING.md file. - Specified stopped supporting Python version below 3.9 in README.md file. * - .editorconfig - Universal editor configuration (works with all IDEs) - .flake8 - Flake8 configuration that PyCharm automatically reads * - Fixed the issue for malware scanner reversing lab download failure. * - Shifted API and Models documentation from README.md to okta/DOC_GUIDE.md. - Added DOC_GUIDE.mustache to generate DOC_GUIDE.md file. - Added SECURITY.md and CODE_OF_CONDUCT.md * - Fixed the config.yaml for DOC_GUIDE.md. - Updated README.mustache for the changes in README.md file. * - Removed .openapi-generator directory. - Added .openapi-generator directory to .gitignore file. * - nit changes to README.mustache and README.md files for code example snippets.
1 parent e9fa5b8 commit 96ef4dc

File tree

3,570 files changed

+409765
-201603
lines changed

Some content is hidden

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

3,570 files changed

+409765
-201603
lines changed

.circleci/config.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ jobs:
4646
- run:
4747
name: Download Reverse Labs Scanner
4848
command: |
49-
curl https://dso-resources.oktasecurity.com/scanner \
50-
-H "x-api-key: $RESOURCE_TOKEN" \
49+
curl --fail --show-error --location \
50+
https://dso-resources.oktasecurity.com/scanner \
51+
-H "x-api-key: $DSO_RLSECURE_TOKEN" \
5152
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
53+
54+
# Verify the downloaded file is a valid wheel
55+
file rl_wrapper-0.0.2+35ababa-py3-none-any.whl
56+
if ! file rl_wrapper-0.0.2+35ababa-py3-none-any.whl | grep -q "Zip archive"; then
57+
echo "ERROR: Downloaded file is not a valid wheel archive"
58+
cat rl_wrapper-0.0.2+35ababa-py3-none-any.whl
59+
exit 1
60+
fi
5261
# Install the wrapper that was downloaded
5362
- run:
5463
name: Install RL Wrapper
@@ -88,4 +97,4 @@ workflows:
8897
jobs:
8998
- reversing-labs:
9099
context:
91-
- okta-dcp
100+
- static-analysis

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EditorConfig for Python project
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.py]
13+
indent_style = space
14+
indent_size = 4
15+
max_line_length = 127
16+
17+
[*.{yml,yaml}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.{json,md}]
22+
indent_style = space
23+
indent_size = 2

.flake8

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[flake8]
2+
max-line-length = 127
3+
max-complexity = 10
4+
ignore = C901,W503,W504
5+
exclude =
6+
.git,
7+
__pycache__,
8+
.venv,
9+
venv,
10+
env,
11+
build,
12+
dist,
13+
*.egg-info,
14+
.tox,
15+
.pytest_cache,
16+
htmlcov
17+
show-source = True
18+
show-pep8 = True
19+
count = True
20+
statistics = True
21+
per-file-ignores =
22+
__init__.py:F401,F403

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var/
2323
*.egg-info/
2424
.installed.cfg
2525
*.egg
26+
.openapi-generator/
2627

2728
# PyInstaller
2829
# Usually these files are written by a python script from a template

.gitlab-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)