macaron-contrib / oauth2

:exclamation::exclamation::exclamation: [deprecated] Moved to https://github.com/go-macaron/oauth2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oauth2

Middleware oauth2 provides support of user login via an OAuth 2.0 backend for Macaron.

It currently support Google, GitHub, LinkedIn, Dropbox, Facebook, Weibo and QQ.

Usage

// ...
m.Use(oauth2.GitHub(oauth2.Options{
	ClientID:     "CLIENT_ID",
	ClientSecret: "CLIENT_SECRET",
	Scopes:       []string{"SCOPE"},
	PathLogin:    "/user/login/oauth2/github",
	PathCallback: "/user/login/github",
	RedirectURL:  "http://localhost:3000/user/login/github",
}))
// ...

Credits

This package is forked from golang/oauth2 and martini-contrib/oauth2 with modifications.

License

This project is under Apache v2 License. See the LICENSE file for the full license text.

About

:exclamation::exclamation::exclamation: [deprecated] Moved to https://github.com/go-macaron/oauth2

License:Apache License 2.0


Languages

Language:Go 100.0%