-
-
Notifications
You must be signed in to change notification settings - Fork 8
Obtaining GitHub Client Secret and Client ID
Rodolfo Herrera Hernandez edited this page Sep 11, 2024
·
1 revision
To integrate your application with GitHub's API, you'll need to obtain a Client Secret and Client ID. Follow these detailed steps to acquire them:
- Sign in to your GitHub account: Go to GitHub and sign in with your user credentials.
- Access your account settings: Click on your profile avatar in the top right corner and select "Settings" from the dropdown menu.
- Navigate to the "Developer settings" section: In the left sidebar, click on "Developer settings."
- Create a new OAuth application: Select "OAuth Apps" and click on the "New OAuth App" button.
- Provide application information: Please enter your app name, your home page URL, and return authorization URL. Please note that the "Home Page URL" must be the address where the server is hosted and cannot be local, that is, it must be accessible to third parties, for example: "http://82.208.22.71:5001 " or "quantum-server.mydomain.com". Likewise, the "Return Authorization URL" must contain the address where the server is hosted followed by the path of the API responsible for returning authorization from Github, for example: "http://82.208.22.71:5002/api/v1/github/callback/" or "https://quantum-server.mydomain.com/api/v1/github/callback/".
- Register the application: Click on the "Register application" button.
- Copy the application credentials: Once registered, GitHub will generate a Client ID and Client Secret. Copy these values and securely store them.
- Utilize the credentials in your application: Use the Client ID and Client Secret in your application's configuration to authenticate requests to GitHub's API.