Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenData ¶
type AccessTokenData struct { ResultData map[string]interface{} ResultJsonStr string // contains filtered or unexported fields }
func CreateAccessToken ¶
func CreateAccessToken(commonData *JwtCommonInfo, userData *User) *AccessTokenData
func (*AccessTokenData) Init ¶
func (token *AccessTokenData) Init()
func (*AccessTokenData) Valid ¶
func (token *AccessTokenData) Valid() error
type Authentication ¶
type Authentication struct { Type AuthenticationType Value string Attributes interface{} }
type AuthenticationType ¶
type AuthenticationType int
const (
ClientIdAndSecrets AuthenticationType = 1
)
type Client ¶
type Client struct { Type ClientType ID uuid.UUID Name string Auth Authentication }
type ClientType ¶
type ClientType string
const ( Public ClientType = "public" Confidential = "confidential" )
type JwtCommonInfo ¶
type JwtCommonInfo struct { IssuedAt time.Time `json:"iat"` ExpiredAt time.Time `json:"exp"` JwtId uuid.UUID `json:"jti"` Type string `json:"typ"` Issuer string `json:"iss"` Audience string `json:"aud"` Subject uuid.UUID `json:"sub"` SessionState uuid.UUID `json:"session_state"` SessionId uuid.UUID `json:"sid"` Scope string `json:"scope"` }
type KeyCloakUser ¶
type KeyCloakUser struct {
// contains filtered or unexported fields
}
func (*KeyCloakUser) GetId ¶
func (user *KeyCloakUser) GetId() uuid.UUID
func (*KeyCloakUser) GetPassword ¶
func (user *KeyCloakUser) GetPassword() string
func (*KeyCloakUser) GetUserInfo ¶
func (user *KeyCloakUser) GetUserInfo() interface{}
func (*KeyCloakUser) GetUsername ¶
func (user *KeyCloakUser) GetUsername() string
type OperationError ¶
type RawUserInfo ¶
type RawUserInfo interface{}
type ServerData ¶
type ServerData struct {
Realms []Realm
}
type TokenRefreshData ¶
type TokenRefreshData struct {
JwtCommonInfo
}
func CreateRefreshToken ¶
func CreateRefreshToken(commonData *JwtCommonInfo) *TokenRefreshData
func (*TokenRefreshData) Valid ¶
func (token *TokenRefreshData) Valid() error
Click to show internal directories.
Click to hide internal directories.