Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 623 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 623 Bytes

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.