vladimirs-git / fortigate-api

Python package for configuring Fortigate (Fortios) devices using REST API
Apache License 2.0
61 stars 18 forks source link

Is it possiable to login to with token but not account and passwds #34

Closed someone132s closed 1 month ago

someone132s commented 1 month ago

as above

vladimirs-git commented 1 month ago

Yes, it is possible to log in using a token instead of an account and password. These resources provide detailed information and examples on how to implement token-based authentication. https://fortigate-api.readthedocs.io/en/latest/fortigateapi/FortiGateAPI.html#fortigate_api.FortiGateAPI https://github.com/vladimirs-git/fortigate-api/blob/main/examples/fortigateapi.py#L64