Documentation ¶
Index ¶
- type ActionRepresentation
- type Client
- func (c *Client) AddClientRolesForUser(accessToken, realmName, userID, clientID string) int
- func (c *Client) ClearUserLoginFailures(accessToken, realmName, userID string) int
- func (c *Client) CreateClientRole(accessToken, realmName, clientID, roleName string) int
- func (c *Client) CreateGroup(accessToken, realmName, groupName string) int
- func (c *Client) CreateRecoveryCode(accessToken, realmName, userID string) int
- func (c *Client) CreateShadowUser(accessToken, realmName, userID string) int
- func (c *Client) CreateUserResponse(accessToken, realmName, username, targetGroup string) (int, string, error)
- func (c *Client) DeleteCredentialsForUser(accessToken, realmName, userID, credID string) int
- func (c *Client) DeleteUser(accessToken, realmName, userID string) int
- func (c *Client) ExecuteActionsEmail(accessToken, realmName, userID string) int
- func (c *Client) GetActions(accessToken string) int
- func (c *Client) GetActionsResponse(accessToken string) (map[string]string, error)
- func (c *Client) GetAnyRoleID(accessToken, realmName string) (string, error)
- func (c *Client) GetAuthorizations(accessToken, realmName, groupID string) int
- func (c *Client) GetAvailableTrustIDGroups(accessToken, realmName string) int
- func (c *Client) GetClient(accessToken, realmName, clientID string) int
- func (c *Client) GetClientRoles(accessToken, realmName, clientID string) int
- func (c *Client) GetClientRolesForUser(accessToken, realmName, userID, clientID string) int
- func (c *Client) GetClients(accessToken, realmName string) int
- func (c *Client) GetCredentialsForUser(accessToken, realmName, userID string) int
- func (c *Client) GetGroup(accessToken, realmName, groupID string) int
- func (c *Client) GetGroups(accessToken, realmName string) int
- func (c *Client) GetGroupsOfUser(accessToken, realmName, userID string) int
- func (c *Client) GetRealm(accessToken, realmName string) int
- func (c *Client) GetRealmAdminConfiguration(accessToken, realmName string) int
- func (c *Client) GetRealmBackOfficeConfiguration(accessToken, realmName string) int
- func (c *Client) GetRealmCustomConfiguration(accessToken, realmName string) int
- func (c *Client) GetRealms(accessToken string) int
- func (c *Client) GetRequiredActions(accessToken, realmName string) int
- func (c *Client) GetRole(accessToken, realmName, roleID string) int
- func (c *Client) GetRoles(accessToken, realmName string) int
- func (c *Client) GetRolesOfUser(accessToken, realmName, userID string) int
- func (c *Client) GetRolesResponse(accessToken, realmName string) ([]RoleRepresentation, error)
- func (c *Client) GetTrustIDGroupsOfUser(accessToken, realmName, userID string) int
- func (c *Client) GetUser(accessToken, realmName, userID string) int
- func (c *Client) GetUserAccountStatus(accessToken, realmName, userID string) int
- func (c *Client) GetUserRealmBackOfficeConfiguration(accessToken, realmName string) int
- func (c *Client) GetUsers(accessToken, realmName, groupID string) int
- func (c *Client) GetUsersResponse(accessToken, realmName, groupID string) (map[string]string, error)
- func (c *Client) ResetPassword(accessToken, realmName, userID string) int
- func (c *Client) ResetSmsCounter(accessToken, realmName, userID string) int
- func (c *Client) SendNewEnrolmentCode(accessToken, realmName, userID string) int
- func (c *Client) SendReminderEmail(accessToken, realmName, userID string) int
- func (c *Client) SetGroupsOfUser(accessToken, realmName, userID string, groupIDs []string) int
- func (c *Client) SetTrustIDGroupsToUser(accessToken, realmName, userID string, groupIDs []string) int
- func (c *Client) UpdateAuthorizations(accessToken, realmName, groupID string) int
- func (c *Client) UpdateRealmBackOfficeConfiguration(accessToken, realmName string) int
- func (c *Client) UpdateUser(accessToken, realmName, userID, username string, group string) int
- type RoleRepresentation
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRepresentation ¶
ActionRepresentation struct
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
func NewBridgeClient ¶
NewBridgeClient creates a keycloak-bridge client
func (*Client) AddClientRolesForUser ¶
AddClientRolesForUser method
func (*Client) ClearUserLoginFailures ¶
ClearUserLoginFailures method
func (*Client) CreateClientRole ¶
CreateClientRole method
func (*Client) CreateGroup ¶
CreateGroup method
func (*Client) CreateRecoveryCode ¶
CreateRecoveryCode method
func (*Client) CreateShadowUser ¶
CreateShadowUser method
func (*Client) CreateUserResponse ¶
func (c *Client) CreateUserResponse(accessToken, realmName, username, targetGroup string) (int, string, error)
CreateUserResponse method
func (*Client) DeleteCredentialsForUser ¶
DeleteCredentialsForUser method
func (*Client) DeleteUser ¶
DeleteUser method
func (*Client) ExecuteActionsEmail ¶
ExecuteActionsEmail method
func (*Client) GetActionsResponse ¶
GetActionsResponse method
func (*Client) GetAnyRoleID ¶
GetAnyRoleID method
func (*Client) GetAuthorizations ¶
GetAuthorizations method
func (*Client) GetAvailableTrustIDGroups ¶
GetAvailableTrustIDGroups method
func (*Client) GetClientRoles ¶
GetClientRoles method
func (*Client) GetClientRolesForUser ¶
GetClientRolesForUser method
func (*Client) GetClients ¶
GetClients method
func (*Client) GetCredentialsForUser ¶
GetCredentialsForUser method
func (*Client) GetGroupsOfUser ¶
GetGroupsOfUser method
func (*Client) GetRealmAdminConfiguration ¶
GetRealmAdminConfiguration method
func (*Client) GetRealmBackOfficeConfiguration ¶
GetRealmBackOfficeConfiguration method
func (*Client) GetRealmCustomConfiguration ¶
GetRealmCustomConfiguration method
func (*Client) GetRequiredActions ¶
GetRequiredActions method
func (*Client) GetRolesOfUser ¶
GetRolesOfUser method
func (*Client) GetRolesResponse ¶
func (c *Client) GetRolesResponse(accessToken, realmName string) ([]RoleRepresentation, error)
GetRolesResponse method
func (*Client) GetTrustIDGroupsOfUser ¶
GetTrustIDGroupsOfUser method
func (*Client) GetUserAccountStatus ¶
GetUserAccountStatus method
func (*Client) GetUserRealmBackOfficeConfiguration ¶
GetUserRealmBackOfficeConfiguration method
func (*Client) GetUsersResponse ¶
func (c *Client) GetUsersResponse(accessToken, realmName, groupID string) (map[string]string, error)
GetUsersResponse method
func (*Client) ResetPassword ¶
ResetPassword method
func (*Client) ResetSmsCounter ¶
ResetSmsCounter method
func (*Client) SendNewEnrolmentCode ¶
SendNewEnrolmentCode method
func (*Client) SendReminderEmail ¶
SendReminderEmail method
func (*Client) SetGroupsOfUser ¶
SetGroupsOfUser method
func (*Client) SetTrustIDGroupsToUser ¶
func (c *Client) SetTrustIDGroupsToUser(accessToken, realmName, userID string, groupIDs []string) int
SetTrustIDGroupsToUser method
func (*Client) UpdateAuthorizations ¶
UpdateAuthorizations method
func (*Client) UpdateRealmBackOfficeConfiguration ¶
UpdateRealmBackOfficeConfiguration method
type RoleRepresentation ¶
type RoleRepresentation struct { ClientRole *bool `json:"clientRole,omitempty"` Composite *bool `json:"composite,omitempty"` ContainerID *string `json:"containerId,omitempty"` Description *string `json:"description,omitempty"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` }
RoleRepresentation struct
type Token ¶
type Token struct { Issuer string `json:"iss,omitempty"` Subject string `json:"sub,omitempty"` ExpirationTime int64 `json:"exp,omitempty"` NotBefore int64 `json:"nbf,omitempty"` IssuedAt int64 `json:"iat,omitempty"` ID string `json:"jti,omitempty"` Username string `json:"preferred_username,omitempty"` // contains filtered or unexported fields }
Token is JWT token. We need to define our own structure as the library define aud as a string but it can also be a string array. To fix this issue, we remove aud as we do not use it here.