Skip to content

Commit 0e02a3b

Browse files
committed
build: promote github.com/gobwas/glob to direct dependency
Also tidy OIDC glob pattern test formatting.
1 parent 5805ab5 commit 0e02a3b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require (
77
github.com/gin-contrib/sessions v1.0.4
88
github.com/gin-contrib/zap v1.1.5
99
github.com/gin-gonic/gin v1.10.1
10+
github.com/gobwas/glob v0.2.3
1011
github.com/golang-jwt/jwt/v5 v5.3.0
1112
github.com/mark3labs/mcp-go v0.37.0
1213
github.com/mattn/go-jsonpointer v0.0.1
@@ -46,7 +47,6 @@ require (
4647
github.com/go-playground/universal-translator v0.18.1 // indirect
4748
github.com/go-playground/validator/v10 v10.26.0 // indirect
4849
github.com/gobuffalo/pop/v6 v6.1.1 // indirect
49-
github.com/gobwas/glob v0.2.3 // indirect
5050
github.com/goccy/go-json v0.10.5 // indirect
5151
github.com/gogo/protobuf v1.3.2 // indirect
5252
github.com/golang/mock v1.6.0 // indirect

pkg/auth/oidc_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ func TestOIDCProviderGlobPatterns(t *testing.T) {
282282
email string
283283
expected bool
284284
}{
285-
{"[email protected]", true}, // matches *@example.com
286-
{"[email protected]", true}, // matches *@example.com
287-
{"[email protected]", true}, // matches admin.*@company.*
285+
{"[email protected]", true}, // matches *@example.com
286+
{"[email protected]", true}, // matches *@example.com
287+
{"[email protected]", true}, // matches admin.*@company.*
288288
{"[email protected]", true}, // matches admin.*@company.*
289-
{"[email protected]", false}, // no match
290-
{"[email protected]", false}, // no match (not admin.*)
291-
{"[email protected]", true}, // matches *@example.com
289+
{"[email protected]", false}, // no match
290+
{"[email protected]", false}, // no match (not admin.*)
291+
{"[email protected]", true}, // matches *@example.com
292292
}
293293

294294
for _, tc := range testCases {

0 commit comments

Comments
 (0)