Skip to content

Commit 177e360

Browse files
committed
Remove legacy server and oauth2 registrar code
1 parent 47d9ed1 commit 177e360

File tree

10 files changed

+7
-1199
lines changed

10 files changed

+7
-1199
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/redis/go-redis/v9 v9.18.0
2424
github.com/rs/xid v1.6.0
2525
github.com/sony/gobreaker/v2 v2.4.0
26+
github.com/spiffe/go-spiffe/v2 v2.6.0
2627
github.com/stretchr/testify v1.11.1
2728
github.com/testcontainers/testcontainers-go v0.40.0
2829
github.com/testcontainers/testcontainers-go/modules/nats v0.40.0
@@ -73,6 +74,7 @@ require (
7374
github.com/docker/go-units v0.5.0 // indirect
7475
github.com/ebitengine/purego v0.10.0 // indirect
7576
github.com/felixge/httpsnoop v1.0.4 // indirect
77+
github.com/go-jose/go-jose/v4 v4.1.3 // indirect
7678
github.com/go-logr/logr v1.4.3 // indirect
7779
github.com/go-logr/stdr v1.2.2 // indirect
7880
github.com/go-ole/go-ole v1.3.0 // indirect

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ github.com/exaring/otelpgx v0.10.0 h1:NGGegdoBQM3jNZDKG8ENhigUcgBN7d7943L0YlcIpZ
8282
github.com/exaring/otelpgx v0.10.0/go.mod h1:R5/M5LWsPPBZc1SrRE5e0DiU48bI78C1/GPTWs6I66U=
8383
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
8484
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
85+
github.com/go-jose/go-jose/v4 v4.1.3 h1:CVLmWDhDVRa6Mi/IgCgaopNosCaHz7zrMeF9MlZRkrs=
86+
github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
8587
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
8688
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
8789
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
@@ -220,6 +222,8 @@ github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w
220222
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
221223
github.com/sony/gobreaker/v2 v2.4.0 h1:g2KJRW1Ubty3+ZOcSEUN7K+REQJdN6yo6XvaML+jptg=
222224
github.com/sony/gobreaker/v2 v2.4.0/go.mod h1:pTyFJgcZ3h2tdQVLZZruK2C0eoFL1fb/G83wK1ZQl+s=
225+
github.com/spiffe/go-spiffe/v2 v2.6.0 h1:l+DolpxNWYgruGQVV0xsfeya3CsC7m8iBzDnMpsbLuo=
226+
github.com/spiffe/go-spiffe/v2 v2.6.0/go.mod h1:gm2SeUoMZEtpnzPNs2Csc0D/gX33k1xIx7lEzqblHEs=
223227
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
224228
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
225229
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=

options_security.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
package frame
22

33
import (
4-
"context"
5-
64
"github.com/pitabwire/frame/security"
75
)
86

9-
func WithRegisterServerOauth2Client() Option {
10-
return func(_ context.Context, svc *Service) {
11-
svc.registerPlugin("security")
12-
13-
svc.registerOauth2Cli = true
14-
}
15-
}
16-
177
func (s *Service) SecurityManager() security.Manager {
188
return s.securityManager
199
}

security/manager/internal_client.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

security/openid/oauth2_client_registrar.go

Lines changed: 0 additions & 172 deletions
This file was deleted.

security/openid/oauth2_client_registrar_test.go

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)