Documentation ¶
Index ¶
- func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)
- type ConnectionConfig
- type GoCloakBasedKeycloakService
- func (g *GoCloakBasedKeycloakService) GetClientSecret(ctx context.Context, token string, realm string, clientID string) (*gocloak.CredentialRepresentation, error)
- func (g *GoCloakBasedKeycloakService) GetClients(ctx context.Context, token string, realm string, ...) ([]*gocloak.Client, error)
- func (g *GoCloakBasedKeycloakService) GetWellKnownOpenidConfiguration(ctx context.Context, realm string) (*keycloakservice.WellKnownOpenidConfiguration, error)
- func (g *GoCloakBasedKeycloakService) LoginClient(ctx context.Context, clientID string, clientSecret string, realm string) (*gocloak.JWT, error)
- type GoCloakFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionConfig ¶ added in v0.3.0
type ConnectionConfig struct { ServerUrl string `json:"server_url"` Realm string `json:"realm"` ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` }
ConnectionConfig contains the information required to make a connection to a RabbitMQ node
type GoCloakBasedKeycloakService ¶ added in v0.3.0
type GoCloakBasedKeycloakService struct {
// contains filtered or unexported fields
}
func (*GoCloakBasedKeycloakService) GetClientSecret ¶ added in v0.3.0
func (*GoCloakBasedKeycloakService) GetClients ¶ added in v0.3.0
func (*GoCloakBasedKeycloakService) GetWellKnownOpenidConfiguration ¶ added in v0.3.0
func (g *GoCloakBasedKeycloakService) GetWellKnownOpenidConfiguration(ctx context.Context, realm string) (*keycloakservice.WellKnownOpenidConfiguration, error)
func (*GoCloakBasedKeycloakService) LoginClient ¶ added in v0.3.0
func (g *GoCloakBasedKeycloakService) LoginClient(ctx context.Context, clientID string, clientSecret string, realm string) (*gocloak.JWT, error)
implement KeycloakService and delegate methods to gocloakClient
type GoCloakFactory ¶
type GoCloakFactory struct { }
func (*GoCloakFactory) NewClient ¶
func (b *GoCloakFactory) NewClient(ctx context.Context, connConfig keycloakservice.ConnectionConfig) (keycloakservice.KeycloakService, error)
Click to show internal directories.
Click to hide internal directories.