This document details how to integrate ClearScore SSO into your application. It includes setup steps, environment variable configurations, and API requirements.
To use ClearScore SSO, you need to configure the following environment variables in your .env file:
CLEAR_SCORE_CLIENT_ID: ClearScore OAuth client IDCLEAR_SCORE_CLIENT_SECRET: ClearScore OAuth client secret
- Register Your Application: Visit the ClearScore API developer portal and register your application.
- Obtain Client Credentials: After registration, you will receive a
Client IDandClient Secret. - Set Environment Variables: Add the
CLEAR_SCORE_CLIENT_IDandCLEAR_SCORE_CLIENT_SECRETvalues to your.envfile in the following format:
CLEAR_SCORE_CLIENT_ID=your_clear_score_client_id
CLEAR_SCORE_CLIENT_SECRET=your_clear_score_client_secret
To interact with ClearScore's OAuth and email sending capabilities, ensure your application requests the following scopes:
user.info.reademail.send
user.info.read: Allows reading of user profile information.email.send: Allows sending emails on behalf of the user.