Overview
This guide outlines the steps to configure OAuth2 authentication for the GitHub integration in your CDCM application.
...
By following these instructions, you'll enable your users to seamlessly connect their GitHub accounts and access their repositories within CDCM.
Create OAuth
...
Application in Github
Find Developer Settings: Locate the "Developer settings" link in the sidebar menu.
...
Configure OAuth App Details: Fill out the required fields:
Application name: "CDCM - Productive" (something users will recognize)
Homepage URL: Something like"https://your.cdcm.instance.com" (the root URL for your CDCM instance)
Authorization callback URL: "https://your.cdcm.instance.com/external-login/oauth2-redirect/cdcm-github" (the CDCM instance URL plus the correct redirect path and a unique connection ID, see below for details)
Optionally, provide an Application description.
Register the Application: Click the "Register application" button to complete the process.
Generate a new client secret: After the application is registered you get a client ID and can create a client secret. You will need both when you configure connection routing in cdcm.
...
Make sure to set the Authorization
...
Callback URL correctly:
The format for the Authorization callback URL should be:
...
The external-login/oauth2-redirect/
part of the URL is a predefined path that your CDCM application is expecting the GitHub OAuth flow to redirect to after a successful authentication.
Connection
...
Routing
After the oauth application was registered in github the connection routing configuration yml can be updated.
...