To authenticate to the Guardium REST API, a client ID must be registered in Guardium and
the associated client secret retrieved. Registering a client ID is done by using the
grdapi command line utility of Guardium.
Procedure
-
Create a client ID.
- Log in to Guardium command line interface by using SSH.
- Run the
grdapi command line utility of Guardium.
grdapi register_oauth_client client_id=gdpr ID=0
{"client_id":"gdpr","client_secret":"164ae54e-b03c-
4366-bd43-9e38bdd562f1",
"grant_types":"password","scope":"read,write","redirect_uri"
:"https://someApp"}
ok
- Save the client secret.
- Provide the
client_id and client_secret in the HTTP URL
for Guardium appliance. For example,
https://<Guardium_Host><Port_Number>/oauth/token?
client_id=<client_ID>&grant_type=password&client_secret=<Client_Secret>&username=<Admin_Account>&password=<Password>