Documentation ¶
Index ¶
- type Client
- func (keyCloakClient Client) AddMemberToGroup(userid string, groupID string)
- func (keyCloakClient Client) CreateGroup(groupName string, tenant string)
- func (keyCloakClient Client) CreateUser(user *gocloak.User)
- func (keyCloakClient Client) GetAllUsers() []*gocloak.User
- func (keyCloakClient Client) GetGroupID(groupName string) (groupID string)
- func (keyCloakClient Client) GetGroupMembers(groupID string) []*gocloak.User
- func (keyCloakClient Client) GetGroups() []*gocloak.Group
- func (keyCloakClient Client) GetUser(username string) (user *gocloak.User)
- func (keyCloakClient Client) GetUserID(username string) string
- func (keyCloakClient Client) RemoveGroup(groupID string)
- func (keyCloakClient Client) RemoveMemberFromGroup(userid string, groupID string)
- func (keyCloakClient Client) SearchUser(username string) (user *gocloak.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct with api methods and accesstoken
func NewKeyCloakClient ¶
NewKeyCloakClient initalizes a new Client struct and connects to KeyCloak
func (Client) AddMemberToGroup ¶
AddMemberToGroup adds a member to a Group
func (Client) CreateGroup ¶
CreateGroup creates a group in KeyCloak
func (Client) CreateUser ¶
func (keyCloakClient Client) CreateUser(user *gocloak.User)
CreateUser creates a user in KeyCloak
func (Client) GetAllUsers ¶
func (keyCloakClient Client) GetAllUsers() []*gocloak.User
GetAllUsers gets all Users from Keycloak
func (Client) GetGroupID ¶
GetGroupID gets a group from KeyCloak and returns the ID
func (Client) GetGroupMembers ¶
GetGroupMembers gets members of a Group
func (Client) GetGroups ¶
func (keyCloakClient Client) GetGroups() []*gocloak.Group
GetGroups fetches all groups from KeyCloak
func (Client) RemoveGroup ¶
RemoveGroup removes a group from KeyCloak
func (Client) RemoveMemberFromGroup ¶
RemoveMemberFromGroup removes a member from a Group
func (Client) SearchUser ¶
SearchUser searches a User in KeyCloak
Click to show internal directories.
Click to hide internal directories.