DEV Community

Sumit Chahar
Sumit Chahar

Posted on

Register OAuth Application on Github

The first step in creating our Github OAuth application is registering our app on Github.

You will need to follow the below steps -

  • go to your Github account and navigate to /setting/developers.
    Image description

  • Choose OAuth apps and create a New OAuth app.

Image description

  • In this step we have to give our application a name and a homepage URL I am using it on localhost so I've given a localhost URL.

  • We also need to provide an authorisation callback url here which is the url where the user is redirected to after Github authorise our application.

Image description

  • After Registering the application we'll be redirected to our application settings and provided with the clientID and we need to manually generate the client secret. The clientID and client secret are to be stored in the .env file as these should not be exposed anywhere being sensitive information.

Image description

Go to next Article 👉

Top comments (0)