02_OAuth2/

directory
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT

README

This exercise combines client and server using OAuth2 protocol

Server and Client are to be run together. Taken from Official User Guide of go package OAuth2

Server

Configure

$ cd ../server $ go build server.go $ ./server

You don't need the client to launch it ;-

Outcome

2021/12/18 09:34:41 Dump client requests 2021/12/18 09:34:41 Server is running at 9096 port. 2021/12/18 09:34:41 Point your OAuth client Auth at http://localhost:9096/oauth/authorize 2021/12/18 09:34:41 Point your OAuth client Token at http://localhost:9096/oauth/token

Client

Configure

$ cd ../client $ go build client.go $ ./client

Outcome

The user can then start using the client & server: http:localhost:9094/try http:localhost:9094/refresh http:localhost:9094/pwd http:localhost:9094/login

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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