Use case — authentication failure

The switch will return an error if authentication fails:

WorkStation# curl --noproxy 10.100.167.104 -X POST http://10.100.167.104:80/rest/v1/login-sessions -d '{"userName":"test", "password":"test"}'

Switch response upon failure:

{ "message": "Authentication failed." }
  • An operator may only use the GET method. A manager is supported for all methods.
  • Posting a login request is not required and requests may be sent without a cookie if a user name is not configured.

Other failure causes

  1. The wrong username/password is sent to create login sessions.
  2. The user is configured and REST requests are sent without session id.