Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicolasparada/go-oauth2-client-short

Simple oauth2 client with Go
https://github.com/nicolasparada/go-oauth2-client-short

oauth2 oauth2-client social-login

Last synced: 6 days ago
JSON representation

Simple oauth2 client with Go

Awesome Lists containing this project

README

        

# Go OAuth2 Client

Source code of .

It's just a simple demo of how to make an OAuth2 client. In this specific example using GitHub.

Go to
and create a new OAuth application.
Set the redirect callback URI to .
Copy the client ID and secret and put them in a `.env` file like so:

```env
GITHUB_CLIENT_ID=YOUR_CLIENT_ID_HERE
GITHUB_CLIENT_SECRET=YOUR_CLIENT_SECRET_HERE
```

Build and run:

```bash
go build
./go-oauth2-client-short
```

Visit .