mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-14 14:01:34 +00:00
feat: adopt domain validator in oauth controller and acls service
This commit is contained in:
@@ -92,7 +92,8 @@ func TestLookupStaticACLs(t *testing.T) {
|
||||
Config: &model.Config{Apps: tt.apps},
|
||||
LabelProvider: nil,
|
||||
})
|
||||
got := svc.lookupStaticACLs(tt.domain)
|
||||
got, err := svc.lookupStaticACLs(tt.domain)
|
||||
require.NoError(t, err)
|
||||
if tt.expectNil {
|
||||
assert.Nil(t, got)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user