Sign In
User sign in screen. A user may login to the application using their email and password if they have created an account, or using a social login.
Screenshots
API
User login
Request
curl -X 'POST' \
'https://st.igate-test.co.uk/api/v1/auth/login/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"username": "sterling@sterling.com",
"password": "AfvcByio"
}'
Response
Type: 200 OK
{
"access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzM3NTU0MTYyLCJpYXQiOjE3Mzc1NTA1NjIsImp0aSI6Ijk3YjQ4MzRiOGIwMzQxMWY5YzU4NmEwOTY2NWMyMWY1IiwidXNlcl9pZCI6NDF9.Zjb9A9VMJGJgYUoN7uQfyIjmkE6qaU7YtzcADjlm0jQ",
"refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTczNzYzNjk2MiwiaWF0IjoxNzM3NTUwNTYyLCJqdGkiOiIwYmNhMmEwMmY3NDk0NGFlODdmNjJjMzcxNzcyMmVmMSIsInVzZXJfaWQiOjQxfQ.BsrPGsCm-qbuzwheTzfF_gF2DBvAo2OyLcWVWzVih1I",
"user": {
"url": "https://st.igate-test.co.uk/api/v1/users/c0eb56f0-453a-4520-b392-75f38c6fe1d8/",
"uuid": "c0eb56f0-453a-4520-b392-75f38c6fe1d8",
"username": "sterling@sterling.com",
"email": "sterling@sterling.com",
"accepts_terms": true,
"accepts_marketing": true,
"profile": "https://st.igate-test.co.uk/api/v1/user/profile/cb7d3f93-ccce-48d4-bf82-4c3dcb54d6ee/",
"address": "https://st.igate-test.co.uk/api/v1/user/address/898c6364-eaff-49bc-8ce6-7256029a81d1/",
"vehicles": [],
"occupations": []
}
}
Social login
This feature is currently in development and will be available in a future release.