Note
A detailed walkthrough is available in our OAuth 2.0 Client Creation guide.
To set up an app to use OAuth 2.0, perform the following steps:
- Create a new application on the developer portal (requires developer tools).
- Create an OAuth 2.0 client from within the settings of that app.
- Obtain an OAuth 2.0 client ID and client secret from the OAuth 2.0 client page within the app.
Register at least one redirect URI on that page. Lucid will redirect the user to this location once they have granted access. This should be a URL that the app controls. Lucid will append the authorization code to the URL in the code query parameter.
Test redirect URI
As a service, Lucid provides a redirect URI that can be used to allow the user to copy the authorization code to the clipboard.
To use it, register the redirect URI:
https://lucid.app/oauth2/clients/{client id}/redirect
When this redirect URI is used and a user grants access to the app, Lucid will redirect the user to a page on our site where they can view and copy the authorization code.