Skip to content

How to get API token for authentication of. Safeguard apiuser #19

@sgundlach3

Description

@sgundlach3

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions