Skip to content

Commit 8742789

Browse files
authored
Merge pull request #16 from LyricTian/develop
Modify README
2 parents 219090d + 2cb20c8 commit 8742789

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
func 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+
6773
Features
6874
--------
6975

@@ -74,12 +80,14 @@ Features
7480

7581
Example
7682
-------
83+
> A complete example of simulation authorization code model
7784
7885
Simulation examples of authorization code model, please check [example](/example)
7986

8087
Storage 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

0 commit comments

Comments
 (0)