File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import (
3131func main () {
3232 manager := manage.NewDefaultManager ()
3333 // token memory store
34- manager.MapTokenStorage (store.NewMemoryTokenStore (0 ))
34+ manager.MustTokenStorage (store.NewMemoryTokenStore ())
3535 // client test store
3636 manager.MapClientStorage (store.NewTestClientStore ())
3737
@@ -64,6 +64,12 @@ $ go build server.go
6464$ ./server
6565```
6666
67+ ### Open in your web browser
68+
69+ ```
70+ http://localhost:9096/authorize?response_type=code&client_id=1&redirect_uri=http%253A%252F%252Flocalhost&scope=all&state=xyz
71+ ```
72+
6773Features
6874--------
6975
@@ -74,12 +80,14 @@ Features
7480
7581Example
7682-------
83+ > A complete example of simulation authorization code model
7784
7885Simulation examples of authorization code model, please check [ example] ( /example )
7986
8087Storage implements
8188------------------
8289
90+ * [ BuntDB] ( https://github.com/tidwall/buntdb ) (The default storage)
8391* [ Redis] ( https://github.com/go-oauth2/redis )
8492* [ MongoDB] ( https://github.com/go-oauth2/mongo )
8593
You can’t perform that action at this time.
0 commit comments