Read the Token Info via the API

6.1.5. Read the Token Info via the API#

The best way is to retrieve the token info data via the API.

This can be done regularly (cron) using a script. The data obtained in this way is available as a CSV file and can be seamlessly merged.

getting the cookie#
curl --no-keepalive -c cookies.txt -X POST \
 -d "username=admin&password=PASSWORD" --insecure "https://LinOTP_IP/admin/login"
reading the Token Info in CSV format#
curl -b cookies.txt -o Audit_Trail.csv --insecure 'https://LINOTP_IP/admin/show?outform=csv'

Import the csv as a table with semicolon separated columns.