Hi,
so I generated a personal access token for a user. how can I put the personal access token to use? I would like to do stuff via the rest api and not send user and password for every api request. Instead I would like to use the personal access token as my authentication method.
Ist this possible? I can’t find any example in the docs or elsewhere.
The token is used as it was a regular user password. It works both in UI and API. No extra field or parameter needed. So instead of a “admin / changeme” you can login using “admin / $thetokenvalue”.
It would be awesome to describe this in our manual Foreman :: Manual, if you’re interested in contributing to our documetation, you can create a PR against this file, it’s simple markdown.
Hi again Marek,
I have another question regarding the tokens. It seems the parameter last_used_at stays None no matter how often I use a token. Is this not implemented yet?