oauth2

package module
v0.0.0-...-d7036f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 13 Imported by: 0

README

CI

go-oauth2-client-sample

Simple OAuth2 client implementation in Go. See following articles for details.

Requirements

  • Go 1.10 or later
  • make

How to build binary

make build

How to run

cp .env.sample .env

Edit .env with your CLIENT_ID and CLIENT_SECRET from Google APIs.

And then run the server.

source .env
make run

You can access to http://localhost:2345 with a web browser after executing the command.

Change PORT on .env if you want to change listening port.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(clientID, clientSecret string) *server

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL