Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRepresentation ¶
ActionRepresentation struct
type ConfigurationRepresentation ¶
type ConfigurationRepresentation struct {
RedirectCancelledRegistrationURL *string `json:"redirect_cancelled_registration_url,omitempty"`
Mode *string `json:"mode,omitempty"`
Theme *string `json:"theme,omitempty"`
SupportedLocales *[]string `json:"supportedLocales,omitempty"`
SelfRegisterEnabled *bool `json:"selfRegisterEnabled,omitempty"`
}
ConfigurationRepresentation representation
type UserRepresentation ¶
type UserRepresentation struct {
Username *string `json:"username,omitempty"`
Gender *string `json:"gender,omitempty"`
FirstName *string `json:"firstName,omitempty"`
LastName *string `json:"lastName,omitempty"`
Email *string `json:"email,omitempty"`
PhoneNumber *string `json:"phoneNumber,omitempty"`
BirthDate *string `json:"birthDate,omitempty"`
BirthLocation *string `json:"birthLocation,omitempty"`
Nationality *string `json:"nationality,omitempty"`
IDDocumentType *string `json:"idDocumentType,omitempty"`
IDDocumentNumber *string `json:"idDocumentNumber,omitempty"`
IDDocumentExpiration *string `json:"idDocumentExpiration,omitempty"`
IDDocumentCountry *string `json:"idDocumentCountry,omitempty"`
Locale *string `json:"locale,omitempty"`
BusinessID *string `json:"businessId,omitempty"`
}
UserRepresentation representation
func UserFromJSON ¶
func UserFromJSON(jsonRep string) (UserRepresentation, error)
UserFromJSON creates a User using its json representation
func (*UserRepresentation) ConvertToKeycloak ¶
func (u *UserRepresentation) ConvertToKeycloak() kc.UserRepresentation
ConvertToKeycloak converts a given User to a Keycloak UserRepresentation
func (*UserRepresentation) UserToJSON ¶
func (u *UserRepresentation) UserToJSON() string
UserToJSON returns a json representation of a given User
func (*UserRepresentation) Validate ¶
func (u *UserRepresentation) Validate(allFieldsMandatory bool) error
Validate checks the validity of the given User
Click to show internal directories.
Click to hide internal directories.