Giter Site home page Giter Site logo

gomniauth's People

Contributors

darrint avatar gagliardetto avatar jonathana avatar maggit avatar matryer avatar nossila avatar so-ta avatar tylerb avatar yamadapc avatar ys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gomniauth's Issues

Add Provider for Soundcloud

Hey stretchr!
I'm working a new project that involves interacting with the SoundCloud API.
I'd be happy to contribute to this awesome library with a provider.

Expect a pull request in a few hours! ๐Ÿ˜„

Wont compile

Every time I try to compile I get this issue. I am not using the below package but it looks like you are.

github.com/ugorji/go/codec

../../ugorji/go/codec/encode.go:533: undefined: sync.Pool
../../ugorji/go/codec/encode.go:1219: undefined: sync.Pool

Compile time errors

When I compile, I get the following errors. I tried with given sample net/http main.go

undefined: bson in bson.Marshal
undefined: codec in codec.MsgpackHandle
undefined: bson in bson.Unmarshal
undefined: codec in codec.NewEncoder
undefined: codec in codec.NewDecoder
undefined: unmarshal

I tried this on go1.5 darwin/amd64

Can't run tests, missing package github.com/stretchr/core

I tried to run the tests and I found a missing package used only on the tests: github.com/stretchr/core/stretchr/constants

When I tried to go get github.com/stretchr/core I was asked my Github's username and password. I think it must be because it's a private repository, is that right?

The error I'm getting on the test run is:

$ go test ./...
# github.com/stretchr/gomniauth/common
common/credentials_test.go:5:2: cannot find package "github.com/stretchr/core/stretchr/constants" in any of:
    /usr/local/go/src/pkg/github.com/stretchr/core/stretchr/constants (from $GOROOT)
    /Users/alisson/go/src/github.com/stretchr/core/stretchr/constants (from $GOPATH)
FAIL    github.com/stretchr/gomniauth/common [setup failed]
# github.com/stretchr/gomniauth/example
runtime.main: call to external function main.main
runtime.main: undefined: main.main
ok      github.com/stretchr/gomniauth   0.031s
# github.com/stretchr/gomniauth/oauth2
oauth2/complete_auth_test.go:50: constant 20000000000 overflows int
oauth2/complete_auth_test.go:128: constant 20000000000 overflows int```

Abstract profile data

Gomniauth should automatically populate all available profile fields.

  • Steal from omniauth?

error call to external function

Hi, Authors.
I am trying to install dependencies by run this command cd $GOPATH/src/github.com/stretchr/gomniauth && go get ./...
But this error occurred
# github.com/stretchr/gomniauth/example runtime.main: call to external function main.main runtime.main: main.main: not defined runtime.main: undefined: main.main
Please take a look.
Thanks.

TestStateFromParam type problem

I'm relatively new to golang, so I might be out of my depth here - sorry if so.

As soon as I forked this repo and ran go test I receive the following error:

        Error Trace:    shortcuts_test.go:30
	Error:      	Not equal: 
	            	expected: int(30)
	            	received: float64(30)

I fixed it for my purposes by adding a float64 convert to shortcuts_test.go line 29:
assert.Equal(t, float64(30), s.Get("age").Data())

What am I missing? I have to assume this worked out of the box on your machine. I tried using go build -a to force rebuilding of all packages (though I don't see how this would really solve the problem, I just saw this suggestion when searching the web for solutions).

Dynamic Auth Providers

We have many issues that are listed for adding auth providers. We should change Gomniauth to be dynamic in how it deals with this.

Instead of having an actual object per provider, we should have a generic provider class that uses a map of provider names to figure out how to make the request.

Each entry in the map would contain all the provider info necessary to talk to the provider, as well as another map defining the fields in the response that are necessary for building our internal user object.

If this was implemented, adding a new provider would be as easy as simply adding a new entry to the default provider data map.

google: Wrong error when user doesn't accept?

On the Google login page if I refuse to login (instead of accepting) I get the error gomniauth: Auth server responded with error 'Server replied with 400 Bad Request.'. from provider.CompleteAuth().

Shouldn't I get a "user refused" error or something like that?

There's error=access_denied in the callback URL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.