Authentication

Create an account at https://auth.cedana.com/ui/registration . Using your email and password, you can grab a session token using the following steps:

export LOGIN_URL=$(curl -s -X GET -H "Accept: application/json" 'https://auth.cedana.com/self-service/login/api' | jq -r '.ui.action')

Use this action flow URL to authenticate and grab a token:

export CEDANA_AUTH_TOKEN=$(curl -s -X POST -H "Accept: application/json" \
                                           -H "Content-Type: application/json" \
                                           -d "{\"identifier\": \"$USER_EMAIL\", \"password\": \"$USER_PASSWORD\", \"method\": \"password\"}" \
                                            "$CEDANA_LOGIN_URL" | jq -r '.session_token'
                          )

This token is valid for 720 hours, and can be used to authenticate all requests to our services.

Last updated