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 <c...@cmadams.net> Sent: Tuesday, April 14, 2020 11:21 AM To: users@ovirt.org 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 <c...@cmadams.net> _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org 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/users@ovirt.org/message/OWQH2JZ72H4XXOURHOYQH3HGQRDSDKPH/ _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org 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/users@ovirt.org/message/T3XMSPNVQQKNWXEMMM5COIDF3L7PYYAB/