FINBOURNE Identity Service API
Project description
finbourne-identity-sdk
FINBOURNE Technology
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.0.2735
- Package version: 2.0.11
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.finbourne.com
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/finbourne/finbourne-identity-sdk-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/finbourne/finbourne-identity-sdk-python.git
)
Then import the package:
import finbourne_identity
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import finbourne_identity
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import finbourne_identity
from finbourne_identity.rest import ApiException
from pprint import pprint
from finbourne_identity import (
ApiClientFactory,
ApplicationMetadataApi,
EnvironmentVariablesConfigurationLoader,
SecretsFileConfigurationLoader,
ArgsConfigurationLoader
)
# Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client
# By default this will read config from environment variables
# Then from a secrets.json file found in the current working directory
api_client_factory = ApiClientFactory()
# The ApiClientFactory can be passed an iterable of configuration loaders to read configuration from
api_url = "https://fbn-prd.lusid.com/identity"
# Path to a secrets.json file containing authentication credentials
# See https://support.lusid.com/knowledgebase/article/KA-01667/en-us
# for a detailed guide to setting up the SDK make authenticated calls to LUSID APIs
secrets_path = os.getenv("FBN_SECRETS_PATH")
app_name="LusidJupyterNotebook"
config_loaders = [
EnvironmentVariablesConfigurationLoader(),
SecretsFileConfigurationLoader(api_secrets_file=secrets_path),
ArgsConfigurationLoader(api_url=api_url, app_name=app_name)
]
api_client_factory = ApiClientFactory(config_loaders=config_loaders)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use
async with api_client_factory:
# Create an instance of the API class
api_instance = finbourne_identity.ApplicationMetadataApi(api_client)
try:
# [EARLY ACCESS] ListAccessControlledResources: Get resources available for access control
api_response = await api_instance.list_access_controlled_resources()
print("The response of ApplicationMetadataApi->list_access_controlled_resources:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://fbn-prd.lusid.com/identity
Class | Method | HTTP request | Description |
---|---|---|---|
ApplicationMetadataApi | list_access_controlled_resources | GET /api/metadata/access/resources | [EARLY ACCESS] ListAccessControlledResources: Get resources available for access control |
ApplicationsApi | create_application | POST /api/applications | [EARLY ACCESS] CreateApplication: Create Application |
ApplicationsApi | delete_application | DELETE /api/applications/{id} | [EARLY ACCESS] DeleteApplication: Delete Application |
ApplicationsApi | get_application | GET /api/applications/{id} | [EARLY ACCESS] GetApplication: Get Application |
ApplicationsApi | list_applications | GET /api/applications | [EARLY ACCESS] ListApplications: List Applications |
ApplicationsApi | rotate_application_secrets | POST /api/applications/{id}/lifecycle/$newsecret | [EXPERIMENTAL] RotateApplicationSecrets: Rotate Application Secrets |
AuthenticationApi | get_authentication_information | GET /api/authentication/information | GetAuthenticationInformation: Gets AuthenticationInformation |
AuthenticationApi | get_password_policy | GET /api/authentication/password-policy/{userType} | [EXPERIMENTAL] GetPasswordPolicy: Gets Password Policy for a user type |
AuthenticationApi | get_support_access_history | GET /api/authentication/support | [EARLY ACCESS] GetSupportAccessHistory: Get the history of all support access granted and any information pertaining to their termination |
AuthenticationApi | get_support_roles | GET /api/authentication/support-roles | [EARLY ACCESS] GetSupportRoles: Get mapping of support roles, the internal representation to a human friendly representation |
AuthenticationApi | grant_support_access | POST /api/authentication/support | [EARLY ACCESS] GrantSupportAccess: Grants FINBOURNE support access to your account |
AuthenticationApi | invalidate_support_access | DELETE /api/authentication/support | [EARLY ACCESS] InvalidateSupportAccess: Revoke any FINBOURNE support access to your account |
IdentityProviderApi | add_scim | PUT /api/identityprovider/scim | [EARLY ACCESS] AddScim: Add SCIM |
IdentityProviderApi | remove_scim | DELETE /api/identityprovider/scim | [EARLY ACCESS] RemoveScim: Remove SCIM |
MeApi | get_user_info | GET /api/me | [EARLY ACCESS] GetUserInfo: Get User Info |
MeApi | set_password | PUT /api/me/password | SetPassword: Set password of current user |
PersonalAuthenticationTokensApi | create_api_key | POST /api/keys | [EARLY ACCESS] CreateApiKey: Create a Personal Access Token |
PersonalAuthenticationTokensApi | delete_api_key | DELETE /api/keys/{id} | [EARLY ACCESS] DeleteApiKey: Invalidate a Personal Access Token |
PersonalAuthenticationTokensApi | list_own_api_keys | GET /api/keys | [EARLY ACCESS] ListOwnApiKeys: Gets the meta data for all of the user's existing Personal Access Tokens. |
RolesApi | add_user_to_role | PUT /api/roles/{id}/users/{userId} | [EARLY ACCESS] AddUserToRole: Add User to Role |
RolesApi | create_role | POST /api/roles | [EARLY ACCESS] CreateRole: Create Role |
RolesApi | delete_role | DELETE /api/roles/{id} | [EARLY ACCESS] DeleteRole: Delete Role |
RolesApi | get_role | GET /api/roles/{id} | [EARLY ACCESS] GetRole: Get Role |
RolesApi | list_roles | GET /api/roles | [EARLY ACCESS] ListRoles: List Roles |
RolesApi | list_users_in_role | GET /api/roles/{id}/users | [EARLY ACCESS] ListUsersInRole: Get the users in the specified role. |
RolesApi | remove_user_from_role | DELETE /api/roles/{id}/users/{userId} | [EARLY ACCESS] RemoveUserFromRole: Remove User from Role |
RolesApi | update_role | PUT /api/roles/{id} | [EARLY ACCESS] UpdateRole: Update Role |
TokensApi | invalidate_token | DELETE /api/tokens | [EARLY ACCESS] InvalidateToken: Invalidate current JWT token (sign out) |
UsersApi | create_user | POST /api/users | [EARLY ACCESS] CreateUser: Create User |
UsersApi | delete_user | DELETE /api/users/{id} | [EARLY ACCESS] DeleteUser: Delete User |
UsersApi | expire_password | POST /api/users/{id}/lifecycle/$expirepassword | [EARLY ACCESS] ExpirePassword: Reset the user's password to a temporary one |
UsersApi | find_users_by_id | GET /api/directory | [EARLY ACCESS] FindUsersById: Find users by id endpoint |
UsersApi | get_user | GET /api/users/{id} | [EARLY ACCESS] GetUser: Get User |
UsersApi | list_runnable_users | GET /api/users/$runnable | [EARLY ACCESS] ListRunnableUsers: List Runable Users |
UsersApi | list_users | GET /api/users | [EARLY ACCESS] ListUsers: List Users |
UsersApi | reset_factors | POST /api/users/{id}/lifecycle/$resetfactors | [EARLY ACCESS] ResetFactors: Reset MFA factors |
UsersApi | reset_password | POST /api/users/{id}/lifecycle/$resetpassword | [EARLY ACCESS] ResetPassword: Reset Password |
UsersApi | send_activation_email | POST /api/users/{id}/lifecycle/$activate | [EARLY ACCESS] SendActivationEmail: Sends an activation email to the User |
UsersApi | unlock_user | POST /api/users/{id}/lifecycle/$unlock | [EARLY ACCESS] UnlockUser: Unlock User |
UsersApi | unsuspend_user | POST /api/users/{id}/lifecycle/$unsuspend | [EXPERIMENTAL] UnsuspendUser: Unsuspend user |
UsersApi | update_user | PUT /api/users/{id} | [EARLY ACCESS] UpdateUser: Update User |
Documentation For Models
- AccessControlledAction
- AccessControlledResource
- ActionId
- AddScimResponse
- ApiKey
- AuthenticationInformation
- CreateApiKey
- CreateApplicationRequest
- CreateRoleRequest
- CreateUserRequest
- CreatedApiKey
- CurrentUserResponse
- ErrorDetail
- IdSelectorDefinition
- IdentifierPartSchema
- Link
- ListUsersResponse
- LusidProblemDetails
- LusidValidationProblemDetails
- OAuthApplication
- PasswordPolicy
- PasswordPolicyAge
- PasswordPolicyComplexity
- PasswordPolicyConditions
- PasswordPolicyLockout
- ResourceListOfAccessControlledResource
- RoleId
- RoleResponse
- SetPassword
- SetPasswordResponse
- SupportAccessExpiry
- SupportAccessExpiryWithRole
- SupportAccessRequest
- SupportAccessResponse
- SupportRole
- SupportRolesResponse
- TemporaryPassword
- UpdateRoleRequest
- UpdateUserRequest
- UserResponse
- UserSummary
Documentation For Authorization
Authentication schemes defined for the API:
oauth2
- Type: OAuth
- Flow: implicit
- Authorization URL: https://lusid.okta.com/oauth2/default/v1/authorize
- Scopes: N/A
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for finbourne_identity_sdk-2.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857d7e7e2851095255737510addf9c2058743070a72193e38f0eb49fedac8cde |
|
MD5 | 0474c983c14c38197a2b34aacede8d02 |
|
BLAKE2b-256 | 879b30707650525496c3e9b54bc36d4b461ef903079591b2d370c6924bc9d7f9 |
Hashes for finbourne_identity_sdk-2.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01324314a673120bd4a32eba5ec602921543de1134ab8966b5cc04ce341768e9 |
|
MD5 | f9560e0b6d0ce3807b405a3c6ec73200 |
|
BLAKE2b-256 | 63353eb20957a240cca0c9130513d9b02401cd56bc087cd46b7bf695c22221fb |