Skip to content

Commit b4f31ca

Browse files
authored
chore: use oauth2 pkce (#9798)
1 parent 9bbcc84 commit b4f31ca

File tree

14 files changed

+155
-181
lines changed

14 files changed

+155
-181
lines changed

api/actionconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"strings"
77

8+
"dario.cat/mergo"
89
"github.com/fatih/structs"
9-
"github.com/imdario/mergo"
1010
"github.com/jinzhu/copier"
1111
)
1212

go.mod

+38-32
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/evcc-io/evcc
33
go 1.21
44

55
require (
6+
dario.cat/mergo v1.0.0
67
github.com/AlecAivazis/survey/v2 v2.3.7
78
github.com/BurntSushi/toml v1.3.2
89
github.com/Masterminds/sprig/v3 v3.2.3
@@ -12,7 +13,7 @@ require (
1213
github.com/andig/mbserver v0.0.0-20230310211055-1d29cbb5820e
1314
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
1415
github.com/avast/retry-go/v4 v4.5.0
15-
github.com/aws/aws-sdk-go v1.45.11
16+
github.com/aws/aws-sdk-go v1.45.23
1617
github.com/basgys/goxml2json v1.1.0
1718
github.com/basvdlei/gotsmart v0.0.3
1819
github.com/benbjohnson/clock v1.3.5
@@ -31,11 +32,11 @@ require (
3132
github.com/fatih/structs v1.1.0
3233
github.com/glebarez/sqlite v1.9.0
3334
github.com/go-http-utils/etag v0.0.0-20161124023236-513ea8f21eb1
34-
github.com/go-playground/validator/v10 v10.15.4
35+
github.com/go-playground/validator/v10 v10.15.5
3536
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
3637
github.com/godbus/dbus/v5 v5.1.0
3738
github.com/gokrazy/updater v0.0.0-20230215172637-813ccc7f21e2
38-
github.com/golang-module/carbon/v2 v2.2.7
39+
github.com/golang-module/carbon/v2 v2.2.8
3940
github.com/golang/mock v1.6.0
4041
github.com/google/go-github/v32 v32.1.0
4142
github.com/google/uuid v1.3.1
@@ -45,7 +46,6 @@ require (
4546
github.com/grid-x/modbus v0.0.0-20230713135356-d9fefd3ae5a5
4647
github.com/hashicorp/go-version v1.6.0
4748
github.com/hasura/go-graphql-client v0.10.0
48-
github.com/imdario/mergo v0.3.16
4949
github.com/influxdata/influxdb-client-go/v2 v2.12.3
5050
github.com/itchyny/gojq v0.12.13
5151
github.com/jeremywohl/flatten v1.0.1
@@ -69,12 +69,11 @@ require (
6969
github.com/muka/go-bluetooth v0.0.0-20221213043340-85dc80edc4e1
7070
github.com/mxschmitt/golang-combinations v1.1.0
7171
github.com/nicksnyder/go-i18n/v2 v2.2.1
72-
github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20220510032225-4f9f17eaec4c
7372
github.com/olekukonko/tablewriter v0.0.5
7473
github.com/philippseith/signalr v0.6.3
7574
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
7675
github.com/prometheus-community/pro-bing v0.3.0
77-
github.com/prometheus/client_golang v1.16.0
76+
github.com/prometheus/client_golang v1.17.0
7877
github.com/prometheus/common v0.44.0
7978
github.com/robertkrimen/otto v0.2.1
8079
github.com/samber/lo v1.38.1
@@ -83,20 +82,20 @@ require (
8382
github.com/spf13/cobra v1.7.0
8483
github.com/spf13/jwalterweatherman v1.1.0
8584
github.com/spf13/pflag v1.0.5
86-
github.com/spf13/viper v1.16.0
85+
github.com/spf13/viper v1.17.0
8786
github.com/stretchr/testify v1.8.4
8887
github.com/traefik/yaegi v0.15.1
8988
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c
90-
github.com/volkszaehler/mbmd v0.0.0-20230819073623-ab54b0355354
89+
github.com/volkszaehler/mbmd v0.0.0-20231001155117-da2566b6849c
9190
github.com/writeas/go-strip-markdown/v2 v2.1.1
9291
gitlab.com/bboehmke/sunny v0.15.1-0.20211022160056-2fba1c86ade6
93-
golang.org/x/crypto/x509roots/fallback v0.0.0-20230910182515-3f0842a46434
94-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
95-
golang.org/x/net v0.15.0
96-
golang.org/x/oauth2 v0.12.0
97-
golang.org/x/sync v0.3.0
92+
golang.org/x/crypto/x509roots/fallback v0.0.0-20231005151211-e3cc52e598e3
93+
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
94+
golang.org/x/net v0.16.0
95+
golang.org/x/oauth2 v0.13.0
96+
golang.org/x/sync v0.4.0
9897
golang.org/x/text v0.13.0
99-
google.golang.org/grpc v1.58.1
98+
google.golang.org/grpc v1.58.2
10099
google.golang.org/protobuf v1.31.0
101100
gopkg.in/yaml.v3 v3.0.1
102101
gorm.io/gorm v1.25.4
@@ -114,8 +113,8 @@ require (
114113
github.com/bytedance/sonic v1.10.1 // indirect
115114
github.com/cespare/xxhash/v2 v2.2.0 // indirect
116115
github.com/chzyer/readline v1.5.1 // indirect
117-
github.com/davecgh/go-spew v1.1.1 // indirect
118-
github.com/deepmap/oapi-codegen v1.12.4 // indirect
116+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
117+
github.com/deepmap/oapi-codegen v1.15.0 // indirect
119118
github.com/dustin/go-humanize v1.0.1 // indirect
120119
github.com/fatih/color v1.15.0 // indirect
121120
github.com/felixge/httpsnoop v1.0.3 // indirect
@@ -140,14 +139,15 @@ require (
140139
github.com/hashicorp/hcl v1.0.0 // indirect
141140
github.com/holoplot/go-avahi v1.0.1 // indirect
142141
github.com/huandu/xstrings v1.4.0 // indirect
142+
github.com/imdario/mergo v1.0.0 // indirect
143143
github.com/inconshreveable/mousetrap v1.1.0 // indirect
144144
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect
145145
github.com/itchyny/timefmt-go v0.1.5 // indirect
146146
github.com/jinzhu/inflection v1.0.0 // indirect
147147
github.com/jinzhu/now v1.1.5 // indirect
148148
github.com/jmespath/go-jmespath v0.4.0 // indirect
149149
github.com/json-iterator/go v1.1.12 // indirect
150-
github.com/klauspost/compress v1.16.7 // indirect
150+
github.com/klauspost/compress v1.17.0 // indirect
151151
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
152152
github.com/kr/text v0.2.0 // indirect
153153
github.com/leodido/go-urn v1.2.4 // indirect
@@ -166,39 +166,45 @@ require (
166166
github.com/pascaldekloe/name v1.0.1 // indirect
167167
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
168168
github.com/pkg/errors v0.9.1 // indirect
169-
github.com/pmezard/go-difflib v1.0.0 // indirect
170-
github.com/prometheus/client_model v0.4.0 // indirect
171-
github.com/prometheus/procfs v0.11.1 // indirect
169+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
170+
github.com/prometheus/client_model v0.5.0 // indirect
171+
github.com/prometheus/procfs v0.12.0 // indirect
172172
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
173-
github.com/rickb777/date v1.20.2 // indirect
173+
github.com/rickb777/date v1.20.5 // indirect
174174
github.com/rickb777/plural v1.4.1 // indirect
175175
github.com/rivo/uniseg v0.4.4 // indirect
176176
github.com/rogpeppe/go-internal v1.11.0 // indirect
177+
github.com/sagikazarmark/locafero v0.3.0 // indirect
178+
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
177179
github.com/shopspring/decimal v1.3.1 // indirect
178180
github.com/sirupsen/logrus v1.9.3 // indirect
179-
github.com/spf13/afero v1.9.5 // indirect
181+
github.com/sourcegraph/conc v0.3.0 // indirect
182+
github.com/spf13/afero v1.10.0 // indirect
180183
github.com/subosito/gotenv v1.6.0 // indirect
181184
github.com/teivah/onecontext v1.3.0 // indirect
182-
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
185+
github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect
183186
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
184187
gitlab.com/c0b/go-ordered-json v0.0.0-20201030195603-febf46534d5a // indirect
188+
go.uber.org/multierr v1.11.0 // indirect
185189
golang.org/x/arch v0.5.0 // indirect
186-
golang.org/x/crypto v0.13.0 // indirect
187-
golang.org/x/mod v0.12.0 // indirect
188-
golang.org/x/sys v0.12.0 // indirect
189-
golang.org/x/term v0.12.0 // indirect
190-
golang.org/x/tools v0.13.0 // indirect
190+
golang.org/x/crypto v0.14.0 // indirect
191+
golang.org/x/mod v0.13.0 // indirect
192+
golang.org/x/sys v0.13.0 // indirect
193+
golang.org/x/term v0.13.0 // indirect
194+
golang.org/x/tools v0.14.0 // indirect
191195
google.golang.org/appengine v1.6.8 // indirect
192-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect
196+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
193197
gopkg.in/go-playground/validator.v9 v9.31.0 // indirect
194198
gopkg.in/ini.v1 v1.67.0 // indirect
195199
gopkg.in/sourcemap.v1 v1.0.5 // indirect
196200
modernc.org/libc v1.24.1 // indirect
197201
modernc.org/mathutil v1.6.0 // indirect
198-
modernc.org/memory v1.7.1 // indirect
199-
modernc.org/sqlite v1.25.0 // indirect
202+
modernc.org/memory v1.7.2 // indirect
203+
modernc.org/sqlite v1.26.0 // indirect
200204
)
201205

206+
replace github.com/deepmap/oapi-codegen => github.com/deepmap/oapi-codegen v1.12.4
207+
202208
replace github.com/grid-x/modbus => github.com/evcc-io/modbus v0.0.0-20230705160100-23e1df2c01c3
203209

204-
replace github.com/deepmap/oapi-codegen => github.com/deepmap/oapi-codegen v1.12.4
210+
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16

0 commit comments

Comments
 (0)