31
31
### Download and install
32
32
33
33
``` bash
34
- go get -u -v gopkg.in/oauth2.v3 /...
34
+ go get -u -v gopkg.in/oauth2.v4 /...
35
35
```
36
36
37
37
### Create file ` server.go `
@@ -43,11 +43,11 @@ import (
43
43
" log"
44
44
" net/http"
45
45
46
- " gopkg.in/oauth2.v3 /errors"
47
- " gopkg.in/oauth2.v3 /manage"
48
- " gopkg.in/oauth2.v3 /models"
49
- " gopkg.in/oauth2.v3 /server"
50
- " gopkg.in/oauth2.v3 /store"
46
+ " gopkg.in/oauth2.v4 /errors"
47
+ " gopkg.in/oauth2.v4 /manage"
48
+ " gopkg.in/oauth2.v4 /models"
49
+ " gopkg.in/oauth2.v4 /server"
50
+ " gopkg.in/oauth2.v4 /store"
51
51
)
52
52
53
53
func main () {
@@ -135,7 +135,7 @@ Simulation examples of authorization code model, please check [example](/example
135
135
``` go
136
136
137
137
import (
138
- " gopkg.in/oauth2.v3 /generates"
138
+ " gopkg.in/oauth2.v4 /generates"
139
139
" github.com/dgrijalva/jwt-go"
140
140
)
141
141
@@ -180,9 +180,9 @@ if !ok || !token.Valid {
180
180
[ Build-Status-Image ] : https://travis-ci.org/go-oauth2/oauth2.svg?branch=master
181
181
[ codecov-url ] : https://codecov.io/gh/go-oauth2/oauth2
182
182
[ codecov-image ] : https://codecov.io/gh/go-oauth2/oauth2/branch/master/graph/badge.svg
183
- [ reportcard-url ] : https://goreportcard.com/report/gopkg.in/oauth2.v3
184
- [ reportcard-image ] : https://goreportcard.com/badge/gopkg.in/oauth2.v3
185
- [ godoc-url ] : https://godoc.org/gopkg.in/oauth2.v3
186
- [ godoc-image ] : https://godoc.org/gopkg.in/oauth2.v3 ?status.svg
183
+ [ reportcard-url ] : https://goreportcard.com/report/gopkg.in/oauth2.v4
184
+ [ reportcard-image ] : https://goreportcard.com/badge/gopkg.in/oauth2.v4
185
+ [ godoc-url ] : https://godoc.org/gopkg.in/oauth2.v4
186
+ [ godoc-image ] : https://godoc.org/gopkg.in/oauth2.v4 ?status.svg
187
187
[ license-url ] : http://opensource.org/licenses/MIT
188
188
[ license-image ] : https://img.shields.io/npm/l/express.svg
0 commit comments