Comments (3)
Run Server
$ cd example/server
$ go run server.go
Run Client
$ cd example/client
$ go run client.go
Open the browser
from oauth2.
Odd.
I'm not sure what was wrong yesterday, but today it works. Must have contaminated my environment somehow :(
Sorry for the erroneous and incomplete bug report!
from oauth2.
I also encountered the same error。
/usr/local/go/src/net/http/server.go:2795 +0x27b 2018/04/03 11:36:00 http: panic serving [::1]:64694: interface conversion: interface {} is nil, not url.Values goroutine 59 [running]: net/http.(*conn).serve.func1(0xc4202c83c0) /usr/local/go/src/net/http/server.go:1726 +0xd0 panic(0x1346300, 0xc420154e80) /usr/local/go/src/runtime/panic.go:505 +0x229 main.authHandler(0x13ef560, 0xc42027c380, 0xc4202dc400) /Users/bruce/go/src/gopkg.in/oauth2.v3/example/server/server.go:117 +0x474 net/http.HandlerFunc.ServeHTTP(0x13c1488, 0x13ef560, 0xc42027c380, 0xc4202dc400) /usr/local/go/src/net/http/server.go:1947 +0x44 net/http.(*ServeMux).ServeHTTP(0x15997c0, 0x13ef560, 0xc42027c380, 0xc4202dc400) /usr/local/go/src/net/http/server.go:2337 +0x130 net/http.serverHandler.ServeHTTP(0xc42011c340, 0x13ef560, 0xc42027c380, 0xc4202dc400) /usr/local/go/src/net/http/server.go:2694 +0xbc net/http.(*conn).serve(0xc4202c83c0, 0x13ef820, 0xc42029ec80) /usr/local/go/src/net/http/server.go:1830 +0x651 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:2795 +0x27b
from oauth2.
Related Issues (20)
- server support for device code auth flow
- [Question] ed25519 sign method support ?
- use base64.RawURLEncoding instead of trimming the padding
- [bug]failed to refresh token
- Does this library support authentication via google and facebook? HOT 3
- When obtaining the token through auth2 concurrently, only the scope value is different, but the returned token is the same HOT 1
- Redirect URI is not compared to configured value HOT 2
- 我在go-zero中集成go-oauth2后,如何跨服务验证token HOT 1
- Is it possible to put the client id and client secret in headers instead of query params?
- how to handle concurrency/unique sessions
- Feature Request: use a local time.Now implementation through module to support testing
- GetRedirectURI return sso code url err HOT 2
- There is no method provided to clean up the specified clientid in the clientstore.
- configuring multiple domains for redirect_uri
- AllowedCodeChallengeMethods is forced to include plain.
- Why must set UserAuthorizationHandler? HOT 1
- Retrieve the clientID using the token?
- Missing refresh_token in response for client_credentials HOT 1
- Example doesn't work - access_denied HOT 2
- Validating redirect_uri via ValidateURIHandler is a bit weird
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2.