The purpose of this document is to describe the requirements for setting up and implementing a custom service provider initiated SSO workflow with Creatable.
Single sign-on steps for accessing Creatable
- User navigates to login.creatable.io
- User chooses “Continue with SSO”
- User enters email address that was configured for the client account for use with SSO, for example “email@example.com”
- Creatable validates the SSO domain
- User is directed to identity provider url of the domain
- User authenticates successfully
- User is redirected back to Creatable
- User lookup is performed
- User is authorized for access to creatable
- User is directed to the Creatable dashboard
In a case where a user account has not been provisioned with Creatable, the user will be displayed a message that their account has not been set up yet.
Custom SSO requirements
Our SSO solution utilizes an OAuth standard with JWT. In order to set up a custom single sign-on workflow, several pieces of information are required to configure the connection.
A domain must be provided that corresponds with the user's email address for the purposes of identification of the identity provider. For example, "brand.com".
Identity provider URL
This is the url that is provided by the client to Creatable that directs the user through an authentication process with the identity provider.
The identity provider will provide to Creatable a public key used to decrypt the ‘token’ parameter. This key must be generated using the RS256 algorithm.
To generate a public & private key, this can be done using an OpenSSL command line:
openssl genrsa -out creatable_private.pem 4096
openssl rsa -in creatable_private.pem -pubout -out creatable_public.pem
Once the public and private keys have been generated, send the public key file to your client success account representative, along with the Identity provider authentication URL and they will complete the set up on the Creatable side.
Identity provider URL request parameters
Sample URL structure
Callback URL parameter (callback_url)
This url encoded value is provided by Creatable and passed to the identity provider.
When redirecting the user to the callback URL from the identity provider, the identity provider must append the 'token' parameter to the callback_url:
Token parameter (token)
Token (JWT) consisting of 3 parts (Header, Payload, Signature). The payload must contain the user’s email address. When encrypting the token parameter, you must use the RS256 algorithm.
The header portion of the JSON token must contain the following data:
The payload of the JSON token must contain the authorized user’s email address in the following structure:
“exp”: EXPIRATION_UNIX_TIMESTAMP, // +5 Minutes from now
Base64 and URL encode the header and payload values, then concatenate them: header + “.” + payload to create the string to be encrypted.
Encrypt that value using the RS256 algorithm with the private key, and the final output is the value of the “signature" portion of the token.
The completed token value should be: header + “.” payload + "." + signature.
Sample callback URL structure
Identity provider appends the token parameter to the callback url:
Final assembled URL format example:
In order for a custom SSO workflow to be implemented, testing credentials must be provided by the client, so that our client success team can validate that the configuration is working as expected. Testing is performed against a publicly available environment provided by the identity provider.
If needed, separate environments can be configured for SSO testing. Please let your client success account manager know if this is the case.