Skip to content

Commit 9f0331e

Browse files
authored
Merge pull request #138 from britive/v4.0.0
v4.0.0
2 parents 2e755bc + 58f399f commit 9f0331e

55 files changed

Lines changed: 748 additions & 648 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log (v2.8.1+)
22

3-
## v3.2.0-beta.1 [2025-01-15]
3+
## v4.0.0 [2025-01-17]
44

55
__What's New:__
66

@@ -25,17 +25,50 @@ __Enhancements:__
2525
__Bug Fixes:__
2626

2727
* Fixed missing `param_values` option for resource creation.
28-
* `my_requests.list_approvals` now includes `my_resources` requests.
28+
* `my_approvals.list` now includes `my_resources` requests.
2929
* Make `get` call in helper method instead `list_approvals`.
30-
* Catch `requests.exceptions.JSONDecodeError` in `_handle_response`.
30+
* Catch `requests.exceptions.JSONDecodeError` in `handle_response`.
3131

3232
__Dependencies:__
3333

3434
* `requests >= 2.32.0`
3535

3636
__Other:__
3737

38-
* None
38+
* Python 3.8 is EOL, so support is dropped.
39+
* Method assignments dropped:
40+
41+
| Dropped | New location |
42+
| -------------------------------------- | --------------------------------------------- |
43+
| `access_builder` | `application_management.access_builder` |
44+
| `accounts` | `application_management.accounts` |
45+
| `applications` | `application_management.applications` |
46+
| `audit_logs` | `audit_logs.logs` |
47+
| `environment_groups` | `application_management.environment_groups` |
48+
| `environments` | `application_management.environments` |
49+
| `groups` | `application_management.groups` |
50+
| `identity_attributes` | `identity_management.identity_attributes` |
51+
| `identity_providers` | `identity_management.identity_providers` |
52+
| `notification_mediums` | `global_settings.notification_mediums` |
53+
| `notifications` | `workflows.notifications` |
54+
| `permissions` | `application_management.permissions` |
55+
| `profiles` | `application_management.profiles` |
56+
| `saml` | `security.saml` |
57+
| `scans` | `application_management.scans` |
58+
| `security_policies` | `security.security_policies` |
59+
| `service_identities` | `identity_management.service_identities` |
60+
| `service_identity_tokens` | `identity_management.service_identity_tokens` |
61+
| `settings` | `global_settings` |
62+
| `step_up` | `security.step_up_auth` |
63+
| `tags` | `identity_management.tags` |
64+
| `task_services` | `workflows.task_services` |
65+
| `tasks` | `workflows.tasks` |
66+
| `users` | `identity_management.users` |
67+
| `workload` | `identity_management.workload` |
68+
| `my_access.approval_request_status` | `my_requests.approval_request_status` |
69+
| `my_access.approve_request` | `my_approvals.approve_request` |
70+
| `my_access.list_approvals` | `my_approvals.list` |
71+
| `my_access.reject_request` | `my_approvals.reject_request` |
3972

4073
## v3.1.0 [2024-10-07]
4174

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ can consume a native Python library.
77

88
## Python Version Support
99

10-
_CURRENT SUPPORTED VERSION(S):_ `>= 3.8`
10+
_CURRENT SUPPORTED VERSION(S):_ `>= 3.9`
1111

1212
We use [typing](https://docs.python.org/3/library/typing.html) and dictionary unpacking, e.g. `{**dict1, **dict2}`,
1313
which requires Python 3.5 or greater.

DEPRECATION.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,48 @@
11
# Deprecation Notices
22

3-
This document holds the items which are deprecated and will be retired in the next major release.
3+
This document holds the items which are deprecated and/or warrant specific call out with each major release.
4+
5+
6+
## Moved methods in `v4.0.0`
7+
8+
### `my_access` methods have moved:
9+
10+
| Old location | New location |
11+
| -------------------------------------- | --------------------------------------------- |
12+
| `my_access.approval_request_status` | `my_requests.approval_request_status` |
13+
| `my_access.approve_request` | `my_approvals.approve_request` |
14+
| `my_access.list_approvals` | `my_approvals.list` |
15+
| `my_access.reject_request` | `my_approvals.reject_request` |
16+
17+
### `britive` methods have moved:
18+
19+
| Old location | New location |
20+
| -------------------------------------- | --------------------------------------------- |
21+
| `access_builder` | `application_management.access_builder` |
22+
| `accounts` | `application_management.accounts` |
23+
| `applications` | `application_management.applications` |
24+
| `audit_logs` | `audit_logs.logs` |
25+
| `environment_groups` | `application_management.environment_groups` |
26+
| `environments` | `application_management.environments` |
27+
| `groups` | `application_management.groups` |
28+
| `identity_attributes` | `identity_management.identity_attributes` |
29+
| `identity_providers` | `identity_management.identity_providers` |
30+
| `notification_mediums` | `global_settings.notification_mediums` |
31+
| `notifications` | `workflows.notifications` |
32+
| `permissions` | `application_management.permissions` |
33+
| `profiles` | `application_management.profiles` |
34+
| `saml` | `security.saml` |
35+
| `scans` | `application_management.scans` |
36+
| `security_policies` | `security.security_policies` |
37+
| `service_identities` | `identity_management.service_identities` |
38+
| `service_identity_tokens` | `identity_management.service_identity_tokens` |
39+
| `settings` | `global_settings` |
40+
| `step_up` | `security.step_up_auth` |
41+
| `tags` | `identity_management.tags` |
42+
| `task_services` | `workflows.task_services` |
43+
| `tasks` | `workflows.tasks` |
44+
| `users` | `identity_management.users` |
45+
| `workload` | `identity_management.workload` |
446

547
## Removed in Major Release 3.0.0
648

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Britive, Inc
3+
Copyright (c) 2025 Britive, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This package aims to wrap the Britive API for usage in Python development. For t
77
the developer/end user experience. Some APIs may also be combined into one Python method with a parameter if and where
88
it makes more sense to present the API that way.
99

10-
This package supports Python versions `>= 3.8`.
10+
This package supports Python versions `>= 3.9`.
1111

1212
## Installation
1313

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers = [
1414
"License :: OSI Approved :: MIT License",
1515
"Operating System :: OS Independent",
1616
"Programming Language :: Python",
17-
"Programming Language :: Python :: 3.8",
1817
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
@@ -24,7 +23,7 @@ classifiers = [
2423
"Topic :: Security",
2524
]
2625
license = {file = "LICENSE"}
27-
requires-python = ">=3.8"
26+
requires-python = ">=3.9"
2827
dependencies = [
2928
"requests>=2.32.0"
3029
]

src/britive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.2.0-beta.1'
1+
__version__ = '4.0.0'

src/britive/access_broker/response_templates.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def create(
99
name: str,
1010
description: str = '',
1111
is_console_enabled: bool = False,
12+
show_on_ui: bool = False,
1213
) -> dict:
1314
"""
1415
Create a new response template.
@@ -17,14 +18,16 @@ def create(
1718
:param description: Description of the response template.
1819
:param template_data: Template data.
1920
:param is_console_enabled: Is console enabled.
21+
:param show_on_ui: Show on UI.
2022
:return: Created response template.
2123
"""
2224

2325
params = {
2426
'name': name,
2527
'description': description,
2628
'template_data': template_data,
27-
'is_console_enabled': is_console_enabled,
29+
'isConsoleAccessEnabled': is_console_enabled,
30+
'show_on_ui': show_on_ui,
2831
}
2932

3033
return self.britive.post(self.base_url, json=params)

src/britive/application_management/applications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def scan(self, application_id: str) -> dict:
137137
the accounts in the org and their place in the OU structure.
138138
139139
Scans are asynchronous operations. The response will include a `taskId` which can be used to make calls
140-
to `britive.scans.status()` to obtain the current status of the scan.
140+
to `britive.application_management.scans.status()` to obtain the current status of the scan.
141141
142142
Note that scans can also be initiated from the Scans class. The same type of scan will be performed no matter
143143
where it is initiated.
@@ -146,7 +146,7 @@ def scan(self, application_id: str) -> dict:
146146
:return: Details of the scan that was initiated.
147147
"""
148148

149-
return self.britive.scans.scan(application_id=application_id)
149+
return self.britive.application_management.scans.scan(application_id=application_id)
150150

151151
def delete(self, application_id: str) -> None:
152152
"""

src/britive/application_management/environments.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def create(self, application_id: str, name: str, description: str = '', parent_g
2222
'type': 'environment',
2323
'description': description,
2424
'parentGroupId': parent_group_id
25-
or self.britive.environment_groups.get_or_create_root(application_id=application_id),
25+
or self.britive.application_management.environment_groups.get_or_create_root(application_id=application_id),
2626
}
2727

2828
return self.britive.post(f'{self.base_url}/{application_id}/root-environment-group/environments', json=data)
@@ -91,7 +91,7 @@ def scan(self, application_id: str, environment_id: str) -> dict:
9191
For all other application types the application will be scanned and not the underlying environment(s).
9292
9393
Scans are asynchronous operations. The response will include a `taskId` which can be used to make calls
94-
to `britive.scans.status()` to obtain the current status of the scan.
94+
to `britive.application_management.scans.status()` to obtain the current status of the scan.
9595
9696
Note that scans can also be initiated from the Scans class. The same type of scan will be performed no matter
9797
where it is initiated.
@@ -101,7 +101,9 @@ def scan(self, application_id: str, environment_id: str) -> dict:
101101
:return: Details of the scan that was initiated.
102102
"""
103103

104-
return self.britive.scans.scan(application_id=application_id, environment_id=environment_id)
104+
return self.britive.application_management.scans.scan(
105+
application_id=application_id, environment_id=environment_id
106+
)
105107

106108
def delete(self, application_id: str, environment_id: str) -> None:
107109
"""

0 commit comments

Comments
 (0)