Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtolio/go-oauth2http
Go library for easily adding required oauth2 HTTP endpoints.
https://github.com/jtolio/go-oauth2http
Last synced: 23 days ago
JSON representation
Go library for easily adding required oauth2 HTTP endpoints.
- Host: GitHub
- URL: https://github.com/jtolio/go-oauth2http
- Owner: jtolio
- License: mit
- Created: 2014-09-08T06:16:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-08T06:31:31.000Z (about 7 years ago)
- Last Synced: 2023-07-10T09:06:40.930Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-oauth2http
=============*Update 2015-06-30:* this project now builds and works again, but conventions
around Go development are moving fast around here. It's likely this project
does this all wrong (I now question the need for the Gorilla deps, for
example).Go library for easily adding required oauth2 resources.
Design goal is to be simple to configure, modular, easy to add, and work
with just net/http.See http://godoc.org/github.com/jtolds/go-oauth2http
Also see the examples at:
https://github.com/jtolds/go-oauth2http/blob/master/examples/group/main.go
https://github.com/jtolds/go-oauth2http/blob/master/examples/one/main.goContrast to https://github.com/GoIncremental/negroni-oauth2, which requires
negroni.Since this package uses github.com/gorilla/sessions (and therefore,
github.com/gorilla/context), make sure to use context.ClearHandler or similar.