Redirection between Partner and Titan
All Redirection between Partner website to Titanmail control panel and from Titanmail control panel to Partner website will contain JWT signature for authentication and authorization of data exchanged. Note - For further information on JSON Web Tokens (JWT) - Click here
Titan mail will provide you one shared API Key which will be used for all API authentication and Hash computation.
Header
{
"typ": "JWT",
"alg": "HS256"
}
Currently Titanmail supports only the HS256 algorithm.
Construct JWT_TOKEN using the above header and payload specific to each redirect request.
Autologin Titan user into webmail
To auto login the Titan user into webmail, redirect to Titan webmail with these query params:
- webmailAutoLoginToken as slt (You will receive this token in the response whenever you create an email account)
- created email as email_account
- true as clearSession (This is optional. Add parameter in case the expectation is to log out any existing logged in accounts on webmail)
Example: https://app.titan.email/?slt=1:nkLjBJX9Uqgy&email_account=james@xyz.com
Note: webmailAutoLoginToken is a short lived token which is meant to be used immediately in the flow after creating an email account. This token should not be persisted and can't be used later to auto login into webmail.
4 endpoints