Login
The /login endpoint is required in order to pass Conformance Test Tool (CTT). The endpoint allows user to authenticate himself using username and password. After successful authentication if user grants permit to requested scopes redirection to Service Provider should happen.
Header parameters
Content-TypestringRequiredExample:
Defines request body content type. MUST be equal to application/x-www-form-urlencoded.
x-www-form-urlencodedBody
usernamestringRequiredExample:
Human user’s login name. Could be email, mobile phone number, nickname etc.
usernamepasswordanyRequiredExample:
Human user’s password.
passwordResponses
200
Login was successful and single page application will be responsible for redirection to returnUrl parameter.
No content
302
Login was successful and back-end application redirects user to returnUrl parameter by itself.
post
/loginPOST /login HTTP/1.1
Host: isharetest.net
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 45
"username='username'&password='password'"No content
Last updated