feat(pkg/op): allow custom SupportedScopes (#675)

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
This commit is contained in:
Kevin Schoonover 2024-11-12 07:06:24 -08:00 committed by GitHub
parent 87ab011157
commit 8afb8b8d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View file

@ -81,6 +81,11 @@ func Test_scopes(t *testing.T) {
args{},
op.DefaultSupportedScopes,
},
{
"custom scopes",
args{newTestProvider(&op.Config{SupportedScopes: []string{"test1", "test2"}})},
[]string{"test1", "test2"},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {