Skip to content

Commit 612556b

Browse files
committed
upgrade with v4 compatibility
1 parent a223cba commit 612556b

File tree

8 files changed

+102
-10
lines changed

8 files changed

+102
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ _testmain.go
2222
*.exe
2323
*.test
2424
*.prof
25+
26+
.history/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Install
66

77
``` bash
8-
$ go get -u -v gopkg.in/go-oauth2/mongo.v3
8+
$ go get -u -v github.com/dxtrleague/go-oauth2-mongo
99
```
1010

1111
## Usage
@@ -14,8 +14,8 @@ $ go get -u -v gopkg.in/go-oauth2/mongo.v3
1414
package main
1515

1616
import (
17-
"gopkg.in/go-oauth2/mongo.v3"
18-
"gopkg.in/oauth2.v3/manage"
17+
"github.com/dxtrleague/go-oauth2-mongo"
18+
"github.com/go-oauth2/oauth2/v4/manage"
1919
)
2020

2121
func main() {

client_store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package mongo
22

33
import (
44
"github.com/globalsign/mgo"
5-
"gopkg.in/oauth2.v3"
6-
"gopkg.in/oauth2.v3/models"
5+
"github.com/go-oauth2/oauth2/v4"
6+
"github.com/go-oauth2/oauth2/v4/models"
77
)
88

99
// ClientConfig client configuration parameters

client_store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
. "github.com/smartystreets/goconvey/convey"
7-
"gopkg.in/oauth2.v3/models"
7+
"github.com/go-oauth2/oauth2/v4/models"
88
)
99

1010
func TestClientStore(t *testing.T) {

go.mod

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
module gopkg.in/go-oauth2/mongo.v3
1+
module github.com/dxtrleague/go-oauth2-mongo
22

33
go 1.13
44

55
require (
66
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
7+
github.com/go-oauth2/oauth2/v4 v4.1.2 // indirect
8+
github.com/kr/pretty v0.2.1 // indirect
9+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
710
github.com/smartystreets/goconvey v1.6.4
11+
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb // indirect
12+
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
813
gopkg.in/oauth2.v3 v3.12.0
914
gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637 // indirect
1015
)

go.sum

Lines changed: 85 additions & 0 deletions
Large diffs are not rendered by default.

token_store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/globalsign/mgo"
99
"github.com/globalsign/mgo/bson"
1010
"github.com/globalsign/mgo/txn"
11-
"gopkg.in/oauth2.v3"
12-
"gopkg.in/oauth2.v3/models"
11+
"github.com/go-oauth2/oauth2/v4"
12+
"github.com/go-oauth2/oauth2/v4/models"
1313
)
1414

1515
// TokenConfig token configuration parameters

token_store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"gopkg.in/oauth2.v3/models"
8+
"github.com/go-oauth2/oauth2/v4/models"
99

1010
. "github.com/smartystreets/goconvey/convey"
1111
)

0 commit comments

Comments
 (0)