-
Notifications
You must be signed in to change notification settings - Fork 15
E_Authentication
Imeji REST API supports two methods of authentication:
- Basic access authentication
- API Key Authentication
##Basic access authentication You may authenticate each request by providing a username and a password in the Authorization field of your request header (see Basic access authentication (Client side)) e.g.
##APIKey authentication You may authenticate each request by providing the API Key in the Authorization field of your request header e.g.
"Authorization: Bearer APIKey"
Posting (login method) the user credentials (username/password) responds with the generated API Key which is valid as long as the user is not explicitly logged-out. The generated API Key is invalidated by calling the logout method. If user did not have APIKey generated, a new one will be created upon calling this method.
Note: Logout Note
"Authorization: Basic <base64-encoded-value-for-username-doublecolon-password>"
##Path / ##Format Responses are in JSON format.
#V1 ##POST /login
- Login a user to the instance
- Method description
##POST /logout
- Logout a user from the instance: The API Key is invalidated
- Method description