Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
Go
Latest commit 7508f95 Jan 20, 2017 @markbates committed on GitHub Merge pull request #124 from willemvd/missing-client-calls
consistent use of p.Client()

README.md

Goth: Multi-Provider Authentication for Go GoDoc Build Status

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.

Unlike other similar packages, Goth, lets you write OAuth, OAuth2, or any other protocol providers, as long as they implement the Provider and Session interfaces.

This package was inspired by https://github.com/intridea/omniauth.

Installation

$ go get github.com/markbates/goth

Supported Providers

  • Amazon
  • Bitbucket
  • Box
  • Cloud Foundry
  • Dailymotion
  • Deezer
  • Digital Ocean
  • Dropbox
  • Facebook
  • Fitbit
  • GitHub
  • Gitlab
  • Google+
  • Heroku
  • InfluxCloud
  • Instagram
  • Intercom
  • Lastfm
  • Linkedin
  • OneDrive
  • Paypal
  • SalesForce
  • Slack
  • Soundcloud
  • Spotify
  • Steam
  • Stripe
  • Twitch
  • Twitter
  • Uber
  • Wepay
  • Yahoo
  • Yammer

Examples

See the examples folder for a working application that lets users authenticate through Twitter, Facebook, Google Plus etc.

Issues

Issues always stand a significantly better chance of getting fixed if the are accompanied by a pull request.

Contributing

Would I love to see more providers? Certainly! Would you love to contribute one? Hopefully, yes!

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write Tests!
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Contributors

  • Mark Bates
  • Tyler Bunnell
  • Corey McGrillis
  • Rakesh Goyal
  • Andy Grunwald
  • Kevin Fitzpatrick
  • Sharad Ganapathy
  • Glenn Walker
  • Ben Tranter
  • sharadgana
  • Geoff Franks
  • Craig P Jolicoeur
  • Zac Bergquist
  • Aurorae
  • Rafael Quintela
  • oov
  • Tyler
  • Noah Shibley
  • DenSm
  • Jacob Walker
  • Samy KACIMI
  • Roy
  • dante gray
  • Raphael Geronimi
  • Noah
  • Jerome Touffe-Blin
  • Johnny Boursiquot
  • Omni Adams
  • Masanobu YOSHIOKA
  • Jonathan Hall
  • HaiMing.Yin
  • Albin Gilles
  • Dante Swift
  • Felix Lamouroux
  • Syed Zubairuddin
  • dkhamsing
  • Sasa Brankovic
  • bryanl