bridge

package
v0.0.0-...-bef3a43 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionRepresentation

type ActionRepresentation struct {
	Name  string `json:"name"`
	Scope string `json:"scope"`
}

ActionRepresentation struct

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client struct

func NewBridgeClient

func NewBridgeClient(bridgeBaseURL string) Client

NewBridgeClient creates a keycloak-bridge client

func (*Client) AddClientRolesForUser

func (c *Client) AddClientRolesForUser(accessToken, realmName, userID, clientID string) int

AddClientRolesForUser method

func (*Client) ClearUserLoginFailures

func (c *Client) ClearUserLoginFailures(accessToken, realmName, userID string) int

ClearUserLoginFailures method

func (*Client) CreateClientRole

func (c *Client) CreateClientRole(accessToken, realmName, clientID, roleName string) int

CreateClientRole method

func (*Client) CreateGroup

func (c *Client) CreateGroup(accessToken, realmName, groupName string) int

CreateGroup method

func (*Client) CreateRecoveryCode

func (c *Client) CreateRecoveryCode(accessToken, realmName, userID string) int

CreateRecoveryCode method

func (*Client) CreateShadowUser

func (c *Client) CreateShadowUser(accessToken, realmName, userID string) int

CreateShadowUser method

func (*Client) CreateUserResponse

func (c *Client) CreateUserResponse(accessToken, realmName, username, targetGroup string) (int, string, error)

CreateUserResponse method

func (*Client) DeleteCredentialsForUser

func (c *Client) DeleteCredentialsForUser(accessToken, realmName, userID, credID string) int

DeleteCredentialsForUser method

func (*Client) DeleteUser

func (c *Client) DeleteUser(accessToken, realmName, userID string) int

DeleteUser method

func (*Client) ExecuteActionsEmail

func (c *Client) ExecuteActionsEmail(accessToken, realmName, userID string) int

ExecuteActionsEmail method

func (*Client) GetActions

func (c *Client) GetActions(accessToken string) int

GetActions method

func (*Client) GetActionsResponse

func (c *Client) GetActionsResponse(accessToken string) (map[string]string, error)

GetActionsResponse method

func (*Client) GetAnyRoleID

func (c *Client) GetAnyRoleID(accessToken, realmName string) (string, error)

GetAnyRoleID method

func (*Client) GetAuthorizations

func (c *Client) GetAuthorizations(accessToken, realmName, groupID string) int

GetAuthorizations method

func (*Client) GetAvailableTrustIDGroups

func (c *Client) GetAvailableTrustIDGroups(accessToken, realmName string) int

GetAvailableTrustIDGroups method

func (*Client) GetClient

func (c *Client) GetClient(accessToken, realmName, clientID string) int

GetClient method

func (*Client) GetClientRoles

func (c *Client) GetClientRoles(accessToken, realmName, clientID string) int

GetClientRoles method

func (*Client) GetClientRolesForUser

func (c *Client) GetClientRolesForUser(accessToken, realmName, userID, clientID string) int

GetClientRolesForUser method

func (*Client) GetClients

func (c *Client) GetClients(accessToken, realmName string) int

GetClients method

func (*Client) GetCredentialsForUser

func (c *Client) GetCredentialsForUser(accessToken, realmName, userID string) int

GetCredentialsForUser method

func (*Client) GetGroup

func (c *Client) GetGroup(accessToken, realmName, groupID string) int

GetGroup method

func (*Client) GetGroups

func (c *Client) GetGroups(accessToken, realmName string) int

GetGroups method

func (*Client) GetGroupsOfUser

func (c *Client) GetGroupsOfUser(accessToken, realmName, userID string) int

GetGroupsOfUser method

func (*Client) GetRealm

func (c *Client) GetRealm(accessToken, realmName string) int

GetRealm method

func (*Client) GetRealmAdminConfiguration

func (c *Client) GetRealmAdminConfiguration(accessToken, realmName string) int

GetRealmAdminConfiguration method

func (*Client) GetRealmBackOfficeConfiguration

func (c *Client) GetRealmBackOfficeConfiguration(accessToken, realmName string) int

GetRealmBackOfficeConfiguration method

func (*Client) GetRealmCustomConfiguration

func (c *Client) GetRealmCustomConfiguration(accessToken, realmName string) int

GetRealmCustomConfiguration method

func (*Client) GetRealms

func (c *Client) GetRealms(accessToken string) int

GetRealms method

func (*Client) GetRequiredActions

func (c *Client) GetRequiredActions(accessToken, realmName string) int

GetRequiredActions method

func (*Client) GetRole

func (c *Client) GetRole(accessToken, realmName, roleID string) int

GetRole method

func (*Client) GetRoles

func (c *Client) GetRoles(accessToken, realmName string) int

GetRoles method

func (*Client) GetRolesOfUser

func (c *Client) GetRolesOfUser(accessToken, realmName, userID string) int

GetRolesOfUser method

func (*Client) GetRolesResponse

func (c *Client) GetRolesResponse(accessToken, realmName string) ([]RoleRepresentation, error)

GetRolesResponse method

func (*Client) GetTrustIDGroupsOfUser

func (c *Client) GetTrustIDGroupsOfUser(accessToken, realmName, userID string) int

GetTrustIDGroupsOfUser method

func (*Client) GetUser

func (c *Client) GetUser(accessToken, realmName, userID string) int

GetUser method

func (*Client) GetUserAccountStatus

func (c *Client) GetUserAccountStatus(accessToken, realmName, userID string) int

GetUserAccountStatus method

func (*Client) GetUserRealmBackOfficeConfiguration

func (c *Client) GetUserRealmBackOfficeConfiguration(accessToken, realmName string) int

GetUserRealmBackOfficeConfiguration method

func (*Client) GetUsers

func (c *Client) GetUsers(accessToken, realmName, groupID string) int

GetUsers method

func (*Client) GetUsersResponse

func (c *Client) GetUsersResponse(accessToken, realmName, groupID string) (map[string]string, error)

GetUsersResponse method

func (*Client) ResetPassword

func (c *Client) ResetPassword(accessToken, realmName, userID string) int

ResetPassword method

func (*Client) ResetSmsCounter

func (c *Client) ResetSmsCounter(accessToken, realmName, userID string) int

ResetSmsCounter method

func (*Client) SendNewEnrolmentCode

func (c *Client) SendNewEnrolmentCode(accessToken, realmName, userID string) int

SendNewEnrolmentCode method

func (*Client) SendReminderEmail

func (c *Client) SendReminderEmail(accessToken, realmName, userID string) int

SendReminderEmail method

func (*Client) SetGroupsOfUser

func (c *Client) SetGroupsOfUser(accessToken, realmName, userID string, groupIDs []string) int

SetGroupsOfUser method

func (*Client) SetTrustIDGroupsToUser

func (c *Client) SetTrustIDGroupsToUser(accessToken, realmName, userID string, groupIDs []string) int

SetTrustIDGroupsToUser method

func (*Client) UpdateAuthorizations

func (c *Client) UpdateAuthorizations(accessToken, realmName, groupID string) int

UpdateAuthorizations method

func (*Client) UpdateRealmBackOfficeConfiguration

func (c *Client) UpdateRealmBackOfficeConfiguration(accessToken, realmName string) int

UpdateRealmBackOfficeConfiguration method

func (*Client) UpdateUser

func (c *Client) UpdateUser(accessToken, realmName, userID, username string, group string) int

UpdateUser 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.

Jump to

Keyboard shortcuts

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