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-urlencoded
Body
usernamestringRequiredExample:
Human user’s login name. Could be email, mobile phone number, nickname etc.
username
passwordanyRequiredExample:
Human user’s password.
password
Responses
200
Login was successful and single page application will be responsible for redirection to returnUrl parameter.
302
Login was successful and back-end application redirects user to returnUrl parameter by itself.
post
POST /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