apiregister

package
v2.3.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RedirectCancelledRegistrationURL *string `json:"redirect_cancelled_registration_url,omitempty"`
}

Configuration representation

type DBUser

type DBUser struct {
	UserID               *string `json:"-"`
	BirthLocation        *string `json:"birth_location,omitempty"`
	IDDocumentType       *string `json:"id_document_typ,omitempty"`
	IDDocumentNumber     *string `json:"id_document_num,omitempty"`
	IDDocumentExpiration *string `json:"id_document_exp,omitempty"`
}

DBUser struct

type User

type User struct {
	Gender               *string `json:"gender,omitempty"`
	FirstName            *string `json:"firstName,omitempty"`
	LastName             *string `json:"lastName,omitempty"`
	EmailAddress         *string `json:"emailAddress,omitempty"`
	PhoneNumber          *string `json:"phoneNumber,omitempty"`
	BirthDate            *string `json:"birthDate,omitempty"`
	BirthLocation        *string `json:"birthLocation,omitempty"`
	IDDocumentType       *string `json:"idDocumentType,omitempty"`
	IDDocumentNumber     *string `json:"idDocumentNumber,omitempty"`
	IDDocumentExpiration *string `json:"idDocumentExpiration,omitempty"`
}

User representation

func UserFromJSON

func UserFromJSON(jsonRep string) (User, error)

UserFromJSON creates a User using its json representation

func (*User) UpdateUserRepresentation

func (u *User) UpdateUserRepresentation(kcUser *kc.UserRepresentation)

UpdateUserRepresentation converts a given User to a Keycloak UserRepresentation

func (*User) UserToJSON

func (u *User) UserToJSON() string

UserToJSON returns a json representation of a given User

func (*User) Validate

func (u *User) Validate() error

Validate checks the validity of the given User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL