Forum Discussion

fanta_377379's avatar
fanta_377379
Icon for Nimbostratus rankNimbostratus
Jan 15, 2019

Authentication using token in F5-SDK

I have issue with authentication using token:

 

To connect to BIG-IP: mgmt= ManagementRoot(“1.1.1.1”,”user”,”pass”)

 

To use token authentication on the nonstandard 4443 tcp port: mgmt= ManagementRoot(“1.1.1.1”,”user”,”pass”, port=4443, token=True)

 

Use existing authentication token: mgmt= ManagementRoot(“1.1.1.1”,”user”,”pass”, token=True, token_to_use=” 2PXGGMT4QR3Y3PAQEEURAPB5DJ”)

 

From this, I have 2 questions: 1-How do we get token_to_use value from mgmt ? 2-Is there a way to use only the value to the token a connect to BIG-IP using ManagementRoot without providing hostname, username and password ?