apikyc

package
v2.4.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccreditationRepresentation

type AccreditationRepresentation struct {
	Type       *string `json:"type"`
	ExpiryDate *string `json:"expiryDate"`
	Expired    *bool   `json:"expired,omitempty"`
}

AccreditationRepresentation is a representation of accreditations

type ActionRepresentation

type ActionRepresentation struct {
	Name  *string `json:"name"`
	Scope *string `json:"scope"`
}

ActionRepresentation struct

type UserRepresentation

type UserRepresentation struct {
	UserID               *string                        `json:"userId,omitempty"`
	Username             *string                        `json:"username,omitempty"`
	Gender               *string                        `json:"gender,omitempty"`
	FirstName            *string                        `json:"firstName,omitempty"`
	LastName             *string                        `json:"lastName,omitempty"`
	EmailAddress         *string                        `json:"emailAddress,omitempty"`
	EmailAddressVerified *bool                          `json:"emailAddressVerified,omitempty"`
	PhoneNumber          *string                        `json:"phoneNumber,omitempty"`
	PhoneNumberVerified  *bool                          `json:"phoneNumberVerified,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"`
	Comment              *string                        `json:"comment,omitempty"`
	Accreditations       *[]AccreditationRepresentation `json:"accreditations,omitempty"`
}

UserRepresentation contains user details

func UserFromJSON

func UserFromJSON(jsonRep string) (UserRepresentation, error)

UserFromJSON creates a User using its json representation

func (*UserRepresentation) ExportToKeycloak

func (u *UserRepresentation) ExportToKeycloak(kcUser *kc.UserRepresentation)

ExportToKeycloak exports user details into a Keycloak UserRepresentation

func (*UserRepresentation) ImportFromKeycloak

func (u *UserRepresentation) ImportFromKeycloak(kcUser *kc.UserRepresentation)

ImportFromKeycloak import details from Keycloak

func (*UserRepresentation) UserToJSON

func (u *UserRepresentation) UserToJSON() string

UserToJSON returns a json representation of a given User

func (*UserRepresentation) Validate

func (u *UserRepresentation) 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