Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
func main() {
manager := manage.NewDefaultManager()
// token memory store
manager.MapTokenStorage(store.NewMemoryTokenStore(0))
manager.MustTokenStorage(store.NewMemoryTokenStore())
// client test store
manager.MapClientStorage(store.NewTestClientStore())

Expand Down Expand Up @@ -64,6 +64,12 @@ $ go build server.go
$ ./server
```

### Open in your web browser

```
http://localhost:9096/authorize?response_type=code&client_id=1&redirect_uri=http%253A%252F%252Flocalhost&scope=all&state=xyz
```

Features
--------

Expand All @@ -74,12 +80,14 @@ Features

Example
-------
> A complete example of simulation authorization code model

Simulation examples of authorization code model, please check [example](/example)

Storage implements
------------------

* [BuntDB](https://github.com/tidwall/buntdb)(The default storage)
* [Redis](https://github.com/go-oauth2/redis)
* [MongoDB](https://github.com/go-oauth2/mongo)

Expand Down