Authentication Settings
Warning
Any action on the Command-Line Interface (CLI) using the root, osadmin,
or autoboss account may cause irreversible, detrimental changes to the
product. Actions taken without direct communication with the IP Fabric
Support or Solution Architect teams can render the system unusable.
Several IP Fabric authentication settings can be modified via the CLI.
Disabling Local Authentication
In case you don’t want to use local authentication (username/password) and want to log in only via SSO or LDAP, you can disable it via the CLI settings (both token and basic authentication will be disabled). Please note that API Tokens will still work.
This will remove the username and password fields from the login page (unless LDAP is configured on the appliance).
- Log in to the IP Fabric CLI as
osadmin. - Elevate to root using
sudo -sandosadminpassword. -
Create a new file
/opt/ipf-api/conf.d/api.jsonor extend the existing one with the below JSON:{ "app": { "enableLocalAuthentication": false } } -
Change file permissions:
chmod 644 /opt/ipf-api/conf.d/api.json - Restart the API:
systemctl restart ipf-api.service
Changing Default JSON Web Token (JWT) Expiration
The default JSON Web Token (JWT) expiration is as follows:
accessToken– 30 minutes (1800 seconds)refreshToken– 24 hours (86400 seconds)
Many company standards require shorter expiration times, and this can be accomplished via the CLI settings.
- Log in to the IP Fabric CLI as
osadmin. - Elevate to root using
sudo -sandosadminpassword. -
Create a new file
/opt/ipf-api/conf.d/api.jsonor extend the existing one with the below JSON. In this example, theaccessTokenexpires in 10 minutes, and therefreshTokenexpires in 15 minutes:{ "app": { "accessToken": { "expiresIn": 600 }, "refreshToken": { "expiresIn": 900, "length": 80 } } } -
Change file permissions:
chmod 644 /opt/ipf-api/conf.d/api.json - Restart the API:
systemctl restart ipf-api.service