OAA Python SDK
Building blocks for your custom OAA integration
Last updated
Was this helpful?
Building blocks for your custom OAA integration
Last updated
Was this helpful?
The `oaaclient` package provides data models, methods and a command-line interface for using the . You can use it to populate OAA templates including as Application, IdP, and HRIS, pushing OAA data to Veza and even as a general Veza API client.
The oaaclient
SDK includes the following components:
oaaclient.client
: Veza API communication (data provider management, payload push, etc.). Requires an API key for authentication.
oaaclient.templates
: Classes for modeling and generating an OAA payload.
oaaclient.utils
: Additional utility functions (icon encoding, etc.).
For example usage, please see and the directory.
Sample Workflow
Create the Veza API connection and a new custom application:
Once the CustomApplication
class is instantiated, you can use the public methods to populate the new app with local users, groups, resources, and permissions metadata:
Once all identities, permissions and resources are added to the CustomApplication object, the client connection handles the final push to Veza:
The OAAClient
class handles API connections to Veza. If there are errors connecting or the API returns errors OAAClient
will raise an OAAClientError
exception. If the payload doesn't conform to the template requirements the OAAClientError.details
will contain a list of any issues encountered.
Since any given source application or service will have different methods for retrieving entities, authorization, and other required metadata, each OAA connector will be slightly different. You should consult the API documentation for your application when considering how you will source the information, and refer to existing Veza-supported OAA connectors for real-world examples.
See the directory for complete examples.
Connector source code and oaaclient
are thoroughly annotated, for reference when building your own integrations.
For additional information about developing a custom OAA integration, please see section of the User Guide.