You can access the API with a local user account by using saslpasswd 
<localuser> then use those credentials for the cron job. You can point to a 
user account in crontab by putting the username before the script path. I'm 
just not sure how to have the password automatically called for authentication.

Eric Evans
Digital Data Services LLC.
304.660.9080


-----Original Message-----
From: Chris Adams <[email protected]> 
Sent: Tuesday, April 14, 2020 11:21 AM
To: [email protected]
Subject: [ovirt-users] Get OAuth token locally without password?

I'm working on a cron job to run on the engine to do some tasks via the API.  
Is there a way I can get an API OAuth token created without actually storing a 
password?

For example, some script that can be run to directly create a session in the 
database and return the token.  Obviously this _can_ be done, it's a matter of 
knowing the right bits to do (so basically wondering if that has already been 
written).

I only have internal users, so no external authentication store available.
--
Chris Adams <[email protected]>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected] Privacy Statement: 
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/OWQH2JZ72H4XXOURHOYQH3HGQRDSDKPH/
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/T3XMSPNVQQKNWXEMMM5COIDF3L7PYYAB/

Reply via email to