Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Apr 30, 2022
1 parent 157bcce commit 9569fe3
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 65 deletions.
12 changes: 2 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,19 @@ require (
github.com/admpub/go-reuseport v0.0.4 // indirect
github.com/admpub/humanize v0.0.0-20190501023926-5f826e92c8ca // indirect
github.com/admpub/log v1.3.2 // indirect
github.com/admpub/oauth2-redis/v4 v4.1.2
github.com/admpub/oauth2/v4 v4.0.0
github.com/admpub/realip v0.0.0-20210421084339-374cf5df122d // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/go-oauth2/oauth2/v4 v4.4.3
github.com/go-oauth2/redis/v4 v4.1.1
github.com/go-redis/redis/v8 v8.11.5
github.com/goccy/go-json v0.9.7 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/markbates/goth v1.71.1
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450 // indirect
github.com/smartwalle/crypto4go v1.0.3
github.com/tidwall/btree v1.3.1 // indirect
github.com/tidwall/buntdb v1.2.9 // indirect
github.com/tidwall/gjson v1.14.1 // indirect
github.com/webx-top/captcha v0.0.1 // indirect
github.com/webx-top/com v0.3.9
github.com/webx-top/echo v2.26.5+incompatible
Expand All @@ -39,6 +33,4 @@ require (
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220429233432-b5fbb4746d32 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
)
58 changes: 13 additions & 45 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"github.com/go-oauth2/oauth2/v4/errors"
"github.com/admpub/oauth2/v4/errors"
"github.com/webx-top/echo"
)

Expand Down
6 changes: 3 additions & 3 deletions manager.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package oauth2s

import (
"github.com/go-oauth2/oauth2/v4/generates"
"github.com/go-oauth2/oauth2/v4/manage"
"github.com/go-oauth2/oauth2/v4/store"
"github.com/admpub/oauth2/v4/generates"
"github.com/admpub/oauth2/v4/manage"
"github.com/admpub/oauth2/v4/store"
)

func NewManager(config *Config) (*manage.Manager, error) {
Expand Down
6 changes: 3 additions & 3 deletions options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package oauth2s

import (
"github.com/go-oauth2/oauth2/v4"
"github.com/go-oauth2/oauth2/v4/manage"
"github.com/go-oauth2/oauth2/v4/server"
"github.com/admpub/oauth2/v4"
"github.com/admpub/oauth2/v4/manage"
"github.com/admpub/oauth2/v4/server"
"github.com/golang-jwt/jwt"
)

Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package oauth2s

import (
"github.com/go-oauth2/oauth2/v4/server"
"github.com/admpub/oauth2/v4/server"
)

func NewServer(config *Config) (*server.Server, error) {
Expand Down
4 changes: 2 additions & 2 deletions store/redis/store.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package redis

import (
"github.com/go-oauth2/oauth2/v4"
oredis "github.com/go-oauth2/redis/v4"
oredis "github.com/admpub/oauth2-redis/v4"
"github.com/admpub/oauth2/v4"
"github.com/go-redis/redis/v8"
)

Expand Down

0 comments on commit 9569fe3

Please sign in to comment.