Initiate IDP User Session
If your HMP is connected to an Identity Provider, this request authenticates the user for an IDP user account. In the request's payload you must provide the API key and secret for the account, which can be found in the admin section of the web interface. See Managing Users for details.
Use the returned authToken
to authenticate subsequent API requests. The token expires after 30 minutes.
Authorizations: All
Requests
POST /apis/authentication/login/key { |
Response
Example:
{ |
Caution
This data is informational only and subject to change in future HMP releases.REST API developers are encouraged to check for a 200 OK
status to verify that a session is valid, but otherwise ignore this response except for the authToken
field. REST API applications that use the data from this response may stop functioning and break user logins if this response is changed.
The value of the authToken
field should be used to authenticate the user for all subsequent requests using the Bearer authentication method.
Error
Code | Payload | Description |
---|---|---|
400 | {"code":"010001","name":"InputValidation", | An apiKey or apiSecret was missing or the wrong JSON type. |
401 | {"code":"020001","name":"UserNotAuthorized", | User has no role assigned. |
401 | {"code":"020002","name":"InvalidCredentials", | The apiKey and/or the apiSecret was incorrect. |
500 | {"code":"070051","name":"CreateUserSession", | An internal error occurred. |
500 | {"code":"070000","name":"InternalServer", | An internal error occurred. |
503 | {"code":"090002","name":"ServiceUnavailable", | Authentication service is unavailable. Please try again later. |