0
Fork 0
mirror of https://github.com/mrjones/oauth.git synced 2026-10-22 19:09:57 +00:00
OAuth 1.0 implementation in go (golang). http://www.mrjon.es
  • Go 99.5%
  • Shell 0.5%
Find a file
Matt Jones 126b352194
Merge pull request #71 from ccqpein/master
support mutil values for single group_id
History 2019-06-23 09:47:57 -04:00
examples Twitter Single-user example, as requested in issue #55 2017-02-25 17:57:52 +00:00
MIT-LICENSE.txt Releasing under the MIT License. 2013-08-06 07:56:40 -04:00
oauth.go support mutil values for single group_id 2019-06-19 20:05:58 -04:00
oauth_test.go Ignore missing verification code when authorizing token 2018-06-18 10:23:44 +02:00
pre-commit.sh fixed precommit comment 2012-11-21 17:47:50 +00:00
provider.go support mutil values for single group_id 2019-06-19 20:05:58 -04:00
provider_test.go run go fmt, and check in with pre-commit hook 2016-03-12 16:52:49 -05:00
README.md Add CircleCI build status to README 2017-01-08 14:16:49 -05:00

OAuth 1.0 Library for Go

GoDoc

CircleCI

(If you need an OAuth 2.0 library, check out: https://godoc.org/golang.org/x/oauth2)

Developing your own apps, with this library

  • First, install the library

      go get github.com/mrjones/oauth
    
  • Then, check out the comments in oauth.go

  • Or, have a look at the examples:

    • Netflix

        go run examples/netflix/netflix.go --consumerkey [key] --consumersecret [secret] --appname [appname]
      
    • Twitter

      Command line:

        go run examples/twitter/twitter.go --consumerkey [key] --consumersecret [secret]
      

      Or, in the browser (using an HTTP server):

        go run examples/twitterserver/twitterserver.go --consumerkey [key] --consumersecret [secret] --port 8888        
      
    • The Google Latitude example is broken, now that Google uses OAuth 2.0

Contributing to this library

  • Please install the pre-commit hook, which will run tests, and go-fmt before committing.

      ln -s $PWD/pre-commit.sh .git/hooks/pre-commit
    
  • Running tests and building is as you'd expect:

      go test *.go
      go build *.go