vladimirs-git / fortigate-api

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

ccsrftoken to new format ccsrftoken_<port> #9

Closed gt732 closed 1 year ago

gt732 commented 1 year ago

Hi,

As discussed looks like version 7+ returns the ccsrftoken like so "ccsrftoken" . I updated fortigate.py to take the self.port and append it to ccsrftoken.

I'm not sure if this will break version 6 train, if so we will need a way to ask the user what version of fortigate they are running and change the ccsrftoken token format appropriately.

Thanks!!

gt732 commented 1 year ago

Closing PR

https://github.com/vladimirs-git/fortigate-api/discussions/8