/sso/login
Login
POST https://api-org.synap.ac/sso/login
When passed a valid user's email you will receive an authenticated URL.
Headers
Name
Type
Description
x-api-key
string
Your API usage token.
x-syn-org-id
string
Your organisation's identifier on Synap.
x-syn-org-secret
string
Your organisation"s secret key, used to authorise each request
content-type
string
application/json
{ "authenticatedURL": "https://example.synap.ac?st=< SESSION TOKEN >" }{ "message": "you do not have permission to perform this operation" }{ "message": "you do not have permission to perform this operation" }Body Parameters
User
Attribute
Type
Required
Description
string
yes
The user's email address
Examples
curl --request POST \
--url https://api-org.synap.ac/sso/login \
--header 'content-type: application/json' \
--header 'x-syn-org-id: org123test' \
--header 'x-syn-org-secret: secret123test' \
--header 'x-api-key: test123api' \
--data '{
"user": {
"email": "[email protected]"
}
}'{
"user": {
"email": "[email protected]"
}
}200 OK
{
"authenticatedURL": "https://yourPortalURL.ac?st=r:123sessiontoken567"
"timestamp": "2020-03-30T10:05:16.754Z"
}
--
403 Forbidden
{
"code": 403,
"error": "Unauthorised request."
}
--
401 Unauthorized
{
"code": 401,
"error": "Object not found."
}Last updated
Was this helpful?