07-27-2021 08:43 AM
Reviewing older 2.x releases versus the 3.2+ MSO API documentation, the user authentication API call documentation is now missing from the /mso/docs. I'd imagine this would be handled by the Nexus Dashboard, however unlike MSO it doesn't have a documents folder for API calls.
Without the API to authenticate, all of the calls to MSO are denied.
Using the old /api/v1/auth/login path that was used in 2.x, now results in a "invalid parameters" status code 500
Any hints on where the authentication documentation is now?
Solved! Go to Solution.
07-27-2021 09:35 AM - edited 07-27-2021 09:35 AM
Okay, so after debugging the nexus dashboard login page.
Using postman, so {{}} are variables I'm using.
Path is now:
https://{{NexusDashboard}}/login
Body of request:
{"userName":"{{username}}","userPasswd":"{{password}}","domain":"DefaultAuth"}
So basically the path is completely different, and they changed the attribute names on username, password, and domainid from the MSO 2.x code.
Response item is also now attribute "jwttoken".
07-27-2021 09:35 AM - edited 07-27-2021 09:35 AM
Okay, so after debugging the nexus dashboard login page.
Using postman, so {{}} are variables I'm using.
Path is now:
https://{{NexusDashboard}}/login
Body of request:
{"userName":"{{username}}","userPasswd":"{{password}}","domain":"DefaultAuth"}
So basically the path is completely different, and they changed the attribute names on username, password, and domainid from the MSO 2.x code.
Response item is also now attribute "jwttoken".
06-02-2022 06:26 AM
Hi, apparently the content of https://mso-ip-address/mso/docs is now available at https://nd-ip-address/apidocs/.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide