stretchr / gomniauth Goto Github PK
View Code? Open in Web Editor NEWAuthentication framework for Go applications.
License: MIT License
Authentication framework for Go applications.
License: MIT License
When pressing Cancel at the Facebook page the following error is shown:
gomniauth: Parameter 'code' is required but missing.
The callback URL is the following:
http://localhost:8080/oauth2/callback/facebook?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=..........
I guess Facebook simply renamed parameters?
The facebookKeyPictureUrl is incorrect in https://github.com/stretchr/gomniauth/blob/master/providers/facebook/user.go
It should be:
facebookKeyPictureUrl string = "picture.data.url"
For google provider uses the following deprecated scopes:
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/userinfo.email
Need to update prior to Sept 1st 2014 see below for details:
https://developers.google.com/+/api/auth-migration#timetable
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! ๐
Every time I try to compile I get this issue. I am not using the below package but it looks like you are.
../../ugorji/go/codec/encode.go:533: undefined: sync.Pool
../../ugorji/go/codec/encode.go:1219: undefined: sync.Pool
Linkedin support was requested by a user.
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
LICENSE file is missing. Necessary for people to use it right.
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```
Is there a way to add custom auth url parameters?
Google OAuth2 has a extra hd
param that's used to restrict login to a certain domain: https://developers.google.com/accounts/docs/OpenIDConnect#hd-param
Gomniauth should automatically populate all available profile fields.
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.
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).
I see that Dropbox support was added a while back but it seems gone now.
Was it removed?
Thanks,
Jamie
I only want to set user:email
but when i set the options it merges with the default scope set in
https://github.com/stretchr/gomniauth/blob/master/providers/github/github.go#L12
How do I override the default scope?
If the token has expired, refresh it before making the request.
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.
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.
This file has no comments: https://github.com/stretchr/gomniauth/blob/master/oauth2/scope.go
@tylerb Can I be added to this as a maintainer, seems some PR's are stale
facebookTokenURL string = "https://graph.facebook.com/v2.2/oauth/access_token"
facebookEndpointProfile string = "https://graph.facebook.com/v2.2/me?fields=email,first_name,last_name,link,about,id,name,picture,location"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.