rolecollectionuserassignment

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL