Documentation
¶
Index ¶
- type Client
- type GoCloakMock
- func (m *GoCloakMock) GetUserInfo(_ context.Context, _, _ string) (*gocloak.UserInfo, error)
- func (m *GoCloakMock) LoginOtp(_ context.Context, _, _, _, _, _, _ string) (*gocloak.JWT, error)
- func (m *GoCloakMock) RetrospectToken(_ context.Context, _, _, _, _ string) (*gocloak.RetrospecTokenResult, error)
- type IClient
- type Mock
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
}
func (*Client) Authenticate ¶
func (*Client) GetAccountIDByJWTToken ¶
func (*Client) GetUserInfo ¶
type GoCloakMock ¶
func (*GoCloakMock) GetUserInfo ¶
func (m *GoCloakMock) GetUserInfo(_ context.Context, _, _ string) (*gocloak.UserInfo, error)
func (*GoCloakMock) LoginOtp ¶
func (m *GoCloakMock) LoginOtp(_ context.Context, _, _, _, _, _, _ string) (*gocloak.JWT, error)
func (*GoCloakMock) RetrospectToken ¶
func (m *GoCloakMock) RetrospectToken(_ context.Context, _, _, _, _ string) (*gocloak.RetrospecTokenResult, error)
type IClient ¶
type IClient interface { Authenticate(username, password string) (*gocloak.JWT, error) IsActiveToken(token string) (bool, error) GetAccountIDByJWTToken(token string) (uuid.UUID, error) GetUserInfo(accessToken string) (*gocloak.UserInfo, error) }
func NewKeycloakClient ¶
func NewKeycloakClient() IClient
type Mock ¶
func (*Mock) Authenticate ¶
func (*Mock) GetAccountIDByJWTToken ¶
func (*Mock) GetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.