Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon_Macpherso
Advisor
Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
Simon_Macpherso
Advisor

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. 

 

View solution in original post

0 Kudos
1 Reply
Simon_Macpherso
Advisor

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. 

 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events