Documentation
¶
Index ¶
- func SetupCustomKeycloak(ctx context.Context, kcParams KeycloakConnectParams, keycloakData KeycloakData) error
- func SetupKeycloak(ctx context.Context, kcConnectParams KeycloakConnectParams) error
- type Client
- type KeycloakConnectParams
- type KeycloakData
- type RealmToCreate
- type TokenExchange
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupCustomKeycloak ¶ added in v0.2.0
func SetupCustomKeycloak(ctx context.Context, kcParams KeycloakConnectParams, keycloakData KeycloakData) error
func SetupKeycloak ¶
func SetupKeycloak(ctx context.Context, kcConnectParams KeycloakConnectParams) error
Types ¶
type Client ¶ added in v0.2.0
type Client struct {
Client gocloak.Client `yaml:"client" json:"client"`
SaRealmRoles []string `yaml:"sa_realm_roles,omitempty" json:"sa_realm_roles,omitempty"`
SaClientRoles map[string][]string `yaml:"sa_client_roles,omitempty" json:"sa_client_roles,omitempty"`
Copies int `yaml:"copies,omitempty" json:"copies,omitempty"`
}
type KeycloakConnectParams ¶
type KeycloakData ¶ added in v0.2.0
type KeycloakData struct {
Realms []RealmToCreate `yaml:"realms" json:"realms"`
}
type RealmToCreate ¶ added in v0.2.0
type RealmToCreate struct {
RealmRepresentation gocloak.RealmRepresentation `yaml:"realm_repepresentation" json:"realm_repepresentation"`
Clients []Client `yaml:"clients,omitempty" json:"clients,omitempty"`
Users []User `yaml:"users,omitempty" json:"users,omitempty"`
CustomRealmRoles []gocloak.Role `yaml:"custom_realm_roles,omitempty" json:"custom_realm_roles,omitempty"`
CustomClientRoles map[string][]gocloak.Role `yaml:"custom_client_roles,omitempty" json:"custom_client_roles,omitempty"`
CustomGroups []gocloak.Group `yaml:"custom_groups,omitempty" json:"custom_groups,omitempty"`
TokenExchanges []TokenExchange `yaml:"token_exchanges,omitempty" json:"token_exchanges,omitempty"`
}
type TokenExchange ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.