Security
Security related operations
Login
POST http://biostudy-prod.ebi.ac.uk:8788/auth/login
Retrieves the user authentication token.
Example:
curl -X POST \
-d '{ "login": "user@test.org", "password": "123456" }' \   http://biostudy-prod.ebi.ac.uk:8788/auth/login
Request Body
login
string
User login or email
password
string
User password
{
    "sessid": "<user-token>",
    "email": "admin_user@ebi.ac.uk",
    "username": "admin_user",
    "secret": "<user secret>",
    "fullname": "Admin User",
    "superuser": true,
    "allow": [
        "admin_user@ebi.ac.uk",
        "Public"
    ],
    "deny": [],
    "aux": {
        "orcid": "<the orcid>"
    }
}{
    "status": "FAIL",
    "log": {
        "level": "ERROR",
        "message": "Invalid email address or password.",
        "subnodes": []
    }
}Logout
POST http://biostudy-prod.ebi.ac.uk:8788/auth/logout
Expires the given authorization token. 
Example:
curl -X POST \
-d '{ "sessid": "<user token>" }' \
http://biostudy-prod.ebi.ac.uk:8788/auth/logout
Request Body
sessid
string
Authorization token to expire
User Info
GET http://biostudy-prod.ebi.ac.uk:8788/auth/profile
Get the information of a user.
Example:
curl -H "X-SESSION-TOKEN: <authToken>" \
http://biostudy-prod.ebi.ac.uk:8788/auth/profile
Headers
X-SESSION-TOKEN
string
User authentication token
{
    "sessid": "<user-token>",
    "email": "admin_user@ebi.ac.uk",
    "username": "admin_user",
    "secret": "<user secret>",
    "fullname": "Admin User",
    "superuser": true,
    "allow": [
        "admin_user@ebi.ac.uk",
        "Public"
    ],
    "deny": [],
    "aux": {
        "orcid": "<the orcid>"
    }
}Change Password
POST http://biostudy-prod.ebi.ac.uk:8788/auth/password/change
Change the user password.
Example:
curl -X POST 
-d '{ "activationKey": "the-activation-key", "password": "123456" }' \
http://biostudy-prod.ebi.ac.uk:8788/auth/password/change
Request Body
activationKey
string
User activation key
password
string
New password
Password Reset
POST http://biostudy-prod.ebi.ac.uk:8788/auth/password/reset
Reset the user password. An E-Mail is sent to the user in order to create the new password.
Example:
curl -X POST \
-d '{ "email": "user@test.org", "instanceKey": "the-instance-key", "path": "/the/path" }' \
http://biostudy-prod.ebi.ac.uk:8788/auth/password/reset
Request Body
string
User email
instanceKey
string
Instance key that asks for the password reset
path
string
User path
recaptcha2-response
string
Recaptcha response
Last updated
Was this helpful?