- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Gaia API Session Authentication
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gaia API Session Authentication
Hi,
I've deployed Gaia API version 1.5 to some gateways but unable to authenticate via web (Postman) and mgmt_cli.
The admin account exists on Gaia OS and the password is correct.
mgmt_cli login --version 1.5 --context gaia_api --port 981
Username: admin
Password:
code: "err_login_failed_wrong_username_or_password"
errors: "Login authentication failed"
message: "Login Failed Due to Wrong Username or Password"
If I try to use root the following is returned
mgmt_cli login --port 981 --context gaia_api -r true
Error: Failed to login to the management server
API Status:
---------------------
Build: cp991255022
Uptime: 0:41:08
Current Sessions: 0
Latest Version: 1.5
Processes:
Name State PID
---------------------------------
GAIA_API Started 20628
GAIA_API_DOCS Started 20626
APACHE Started 20716
CONFD Started 20067
CLISHD Started 20400
CELERY Started 20625
REDIS Started 20627
Port Details:
-------------------
APACHE Gaia Port: 981
--------------------------------------------
Overall API Status: Started
--------------------------------------------
Regards,
Simon
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The account needed to be explicitly granted permission to use the API; it needs to be granted access to access-mechanism API.
Run show rba user <user> to check current assignments.
Run gaia_api access --user <user> --enable true
Run show rba user <user> to recheck current assignments and confirm access-mechanism API has been added.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The account needed to be explicitly granted permission to use the API; it needs to be granted access to access-mechanism API.
Run show rba user <user> to check current assignments.
Run gaia_api access --user <user> --enable true
Run show rba user <user> to recheck current assignments and confirm access-mechanism API has been added.
