Documentation
¶
Index ¶
- Constants
- type ApiScenario
- type XsusaaGroupRoleAssigner
- func (x *XsusaaGroupRoleAssigner) AssignRole(ctx context.Context, origin, groupName, rolecollection string) error
- func (x *XsusaaGroupRoleAssigner) HasRole(ctx context.Context, origin, groupName, roleCollection string) (bool, error)
- func (x *XsusaaGroupRoleAssigner) RevokeRole(ctx context.Context, origin, groupName, rolecollection string) error
Constants ¶
View Source
const ( GroupWithRoles = ApiScenario("GROUP_WITH_ROLE") NoGroup = ApiScenario("NO_GROUP") InternalServerError = ApiScenario("INTERNAL_SERVER_ERROR") InvalidCreds = ApiScenario("INVALID_CREDS") )
View Source
const ( GroupComparisionOperator = "equals" GroupAttributeName = "Groups" )
Constants for group comparison
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiScenario ¶
type ApiScenario string
type XsusaaGroupRoleAssigner ¶
type XsusaaGroupRoleAssigner struct {
// contains filtered or unexported fields
}
XsusaaGroupRoleAssigner manages role collection assignments for groups within XSUAA.
func NewXsuaaGroupRoleAssigner ¶
func NewXsuaaGroupRoleAssigner(ctx context.Context, clientId, clientSecret, tokenUrl, apiUrl string) *XsusaaGroupRoleAssigner
func (*XsusaaGroupRoleAssigner) AssignRole ¶
func (x *XsusaaGroupRoleAssigner) AssignRole(ctx context.Context, origin, groupName, rolecollection string) error
AssignRole assigns a specified role to a group within XSUAA.
func (*XsusaaGroupRoleAssigner) HasRole ¶
func (x *XsusaaGroupRoleAssigner) HasRole(ctx context.Context, origin, groupName, roleCollection string) (bool, error)
HasRole checks if a group has a specific role within XSUAA.
func (*XsusaaGroupRoleAssigner) RevokeRole ¶
func (x *XsusaaGroupRoleAssigner) RevokeRole(ctx context.Context, origin, groupName, rolecollection string) error
RevokeRole removes a specified role from a group within XSUAA.
Click to show internal directories.
Click to hide internal directories.