implement identity provider and built-in oauth server
Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
@@ -133,7 +133,9 @@ func NewFakeAMOperator() *FakeOperator {
|
||||
})
|
||||
operator.saveFakeRole(platformRoleCacheKey(user.Anonymous), FakeRole{
|
||||
Name: "admin",
|
||||
Rego: "package authz\ndefault allow = false",
|
||||
Rego: `package authz
|
||||
default allow = false
|
||||
`,
|
||||
})
|
||||
return operator
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user