Skip to content

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

License

Notifications You must be signed in to change notification settings

go-macaron/oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages