-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I have a customer that is using Python so that an apiuser can programmatically add assets and accounts to its partition where it is an owner. The apiuser currently has certificate authentication, but the Customer wants to use Safeguard API token to use in their Python script.
I see in the documentation it shows that you can use an API token. How is this generated and is it a one time token or is it longer lasting?
Apologies if this is a simple question as I am not that familiar with API tokens.
Info from SafeguardPy documentation https://github.com/OneIdentity/SafeguardPy
Authentication is also possible using an existing Safeguard API token:
from pysafeguard import *
connection = PySafeguardConnection('safeguard.sample.corp', 'ssl/pathtoca.pem')
connection.connect_token(myApiToken)