Create default roles in scopes to allow authentication and listing scopes/auth methods (#502)
This commit is contained in:
1 parent
67c7b82fbe
commit
a38f40606e
31 files changed
+616
-188
No files matched your search
@@ -71,14 +71,26 @@ func DefaultName() Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithSkipRoleCreation(inSkipRoleCreation bool) Option {
|
||||
func WithSkipAdminRoleCreation(inSkipAdminRoleCreation bool) Option {
|
||||
return func(o *options) {
|
||||
o.queryMap["skip_role_creation"] = fmt.Sprintf("%v", inSkipRoleCreation)
|
||||
o.queryMap["skip_admin_role_creation"] = fmt.Sprintf("%v", inSkipAdminRoleCreation)
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultSkipRoleCreation() Option {
|
||||
func DefaultSkipAdminRoleCreation() Option {
|
||||
return func(o *options) {
|
||||
o.postMap["skip_role_creation"] = nil
|
||||
o.postMap["skip_admin_role_creation"] = nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithSkipDefaultRoleCreation(inSkipDefaultRoleCreation bool) Option {
|
||||
return func(o *options) {
|
||||
o.queryMap["skip_default_role_creation"] = fmt.Sprintf("%v", inSkipDefaultRoleCreation)
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultSkipDefaultRoleCreation() Option {
|
||||
return func(o *options) {
|
||||
o.postMap["skip_default_role_creation"] = nil
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user