├── .gitignore ├── README.md ├── conf ├── .gitkeep └── app_template.conf ├── controllers ├── default.go ├── facebook │ ├── callback.go │ └── oauth2.go ├── github │ ├── callback.go │ └── oauth2.go ├── google │ ├── callback.go │ └── oauth2.go └── twitter │ ├── callback.go │ ├── oauth.go │ └── tweet.go ├── glide.lock ├── glide.yaml ├── lib ├── facebook │ └── main.go ├── github │ └── main.go ├── google │ └── main.go └── twitter │ └── main.go ├── main.go ├── routers └── router.go ├── tests └── default_test.go └── views ├── facebook └── callback.tpl ├── github └── callback.tpl ├── google └── callback.tpl ├── index.tpl └── twitter └── callback.tpl /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/README.md -------------------------------------------------------------------------------- /conf/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /conf/app_template.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/conf/app_template.conf -------------------------------------------------------------------------------- /controllers/default.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/default.go -------------------------------------------------------------------------------- /controllers/facebook/callback.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/facebook/callback.go -------------------------------------------------------------------------------- /controllers/facebook/oauth2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/facebook/oauth2.go -------------------------------------------------------------------------------- /controllers/github/callback.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/github/callback.go -------------------------------------------------------------------------------- /controllers/github/oauth2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/github/oauth2.go -------------------------------------------------------------------------------- /controllers/google/callback.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/google/callback.go -------------------------------------------------------------------------------- /controllers/google/oauth2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/google/oauth2.go -------------------------------------------------------------------------------- /controllers/twitter/callback.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/twitter/callback.go -------------------------------------------------------------------------------- /controllers/twitter/oauth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/twitter/oauth.go -------------------------------------------------------------------------------- /controllers/twitter/tweet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/controllers/twitter/tweet.go -------------------------------------------------------------------------------- /glide.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/glide.lock -------------------------------------------------------------------------------- /glide.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/glide.yaml -------------------------------------------------------------------------------- /lib/facebook/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/lib/facebook/main.go -------------------------------------------------------------------------------- /lib/github/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/lib/github/main.go -------------------------------------------------------------------------------- /lib/google/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/lib/google/main.go -------------------------------------------------------------------------------- /lib/twitter/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/lib/twitter/main.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/main.go -------------------------------------------------------------------------------- /routers/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/routers/router.go -------------------------------------------------------------------------------- /tests/default_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/tests/default_test.go -------------------------------------------------------------------------------- /views/facebook/callback.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/views/facebook/callback.tpl -------------------------------------------------------------------------------- /views/github/callback.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/views/github/callback.tpl -------------------------------------------------------------------------------- /views/google/callback.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/views/google/callback.tpl -------------------------------------------------------------------------------- /views/index.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/views/index.tpl -------------------------------------------------------------------------------- /views/twitter/callback.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wheatandcat/example-golang-oauth2/HEAD/views/twitter/callback.tpl --------------------------------------------------------------------------------