go-macaron / oauth2

Package oauth2 is a middleware that provides support of user login via an OAuth 2.0 backend for Macaron.

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.

Usage

// ...
m.Use(oauth2.Google(
	&goauth2.Config{
		ClientID:     "client_id",
		ClientSecret: "client_secret",
		Scopes:       []string{"https://www.googleapis.com/auth/drive"},
		RedirectURL:  "redirect_url",
	},
))
// ...

Credits

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

License

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

About

Package oauth2 is a middleware that provides support of user login via an OAuth 2.0 backend for Macaron.

License:Apache License 2.0


Languages

Language:Go 100.0%