domain

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	ManageGroupMembership bool `json:"manageGroupMembership"`
	View                  bool `json:"view"`
	MapRoles              bool `json:"mapRoles"`
	Impersonate           bool `json:"impersonate"`
	Manage                bool `json:"manage"`
}

type AccessTokenResponse

type AccessTokenResponse struct {
	AccessToken      string `json:"access_token"`
	ExpiresIn        int    `json:"expires_in"`
	RefreshExpiresIn int    `json:"refresh_expires_in"`
	RefreshToken     string `json:"refresh_token"`
	TokenType        string `json:"token_type"`
	IdToken          string `json:"id_token"`
	NotBeforePolicy  int    `json:"not-before-policy"`
	SessionState     string `json:"session_state"`
	Scope            string `json:"scope"`
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
	ErrorUri         string `json:"error_uri"`
}

func (AccessTokenResponse) AccessTokenToGRpcResponse

func (r AccessTokenResponse) AccessTokenToGRpcResponse() user.AccessTokenResponse

type Client

type Client struct {
	Id                                 string                 `json:"id"`
	ClientId                           string                 `json:"clientId"`
	Name                               string                 `json:"name"`
	RootUrl                            string                 `json:"rootUrl"`
	BaseUrl                            string                 `json:"baseUrl"`
	SurrogateAuthRequired              bool                   `json:"surrogateAuthRequired"`
	Enabled                            bool                   `json:"enabled"`
	AlwaysDisplayInConsole             bool                   `json:"alwaysDisplayInConsole"`
	ClientAuthenticatorType            string                 `json:"clientAuthenticatorType"`
	RedirectUris                       []string               `json:"redirectUris"`
	WebOrigins                         []interface{}          `json:"webOrigins"`
	NotBefore                          int                    `json:"notBefore"`
	BearerOnly                         bool                   `json:"bearerOnly"`
	ConsentRequired                    bool                   `json:"consentRequired"`
	StandardFlowEnabled                bool                   `json:"standardFlowEnabled"`
	ImplicitFlowEnabled                bool                   `json:"implicitFlowEnabled"`
	DirectAccessGrantsEnabled          bool                   `json:"directAccessGrantsEnabled"`
	ServiceAccountsEnabled             bool                   `json:"serviceAccountsEnabled"`
	PublicClient                       bool                   `json:"publicClient"`
	FrontchannelLogout                 bool                   `json:"frontchannelLogout"`
	Protocol                           string                 `json:"protocol"`
	Attributes                         map[string]interface{} `json:"attributes"`
	AuthenticationFlowBindingOverrides struct {
	} `json:"authenticationFlowBindingOverrides"`
	FullScopeAllowed          bool     `json:"fullScopeAllowed"`
	NodeReRegistrationTimeout int      `json:"nodeReRegistrationTimeout"`
	DefaultClientScopes       []string `json:"defaultClientScopes"`
	OptionalClientScopes      []string `json:"optionalClientScopes"`
	Access                    Access   `json:"access"`
}

func (Client) ClientToGRpcResponse

func (c Client) ClientToGRpcResponse() user.ClientResponse

type Credential

type Credential struct {
	Value     string `json:"value"`
	Type      string `json:"type"`
	Temporary bool   `json:"temporary"`
}

type Group

type Group struct {
	Id          string            `json:"id,omitempty"`
	Name        string            `json:"name"`
	Path        string            `json:"path"`
	Attributes  map[string]string `json:"attributes"`
	RealmRoles  []string          `json:"realmRoles"`
	ClientRoles struct {
	} `json:"clientRoles"`
	SubGroups []interface{} `json:"subGroups"`
	Access    Access        `json:"access"`
}

func (Group) GroupToGRpcResponse

func (g Group) GroupToGRpcResponse() user.GroupResponse

type GroupOverview

type GroupOverview struct {
	Id        string        `json:"id,omitempty"`
	Name      string        `json:"name"`
	Path      string        `json:"path"`
	SubGroups []interface{} `json:"subGroups"`
}

func GroupGRpcRequestToRequest

func GroupGRpcRequestToRequest(request *user.GroupRequest) GroupOverview

func (GroupOverview) GroupOverviewToGRpcResponse

func (o GroupOverview) GroupOverviewToGRpcResponse() user.GroupResponse

type OIDCInfo

type OIDCInfo struct {
	Subject             string   `json:"subject"`
	Iss                 string   `json:"iss"`
	Aud                 []string `json:"aud"`
	Sub                 string   `json:"sub"`
	Name                string   `json:"name"`
	GivenName           string   `json:"given_name"`
	FamilyName          string   `json:"family_name"`
	MiddleName          string   `json:"middle_name"`
	Nickname            string   `json:"nickname"`
	PreferredUsername   string   `json:"preferred_username"`
	Profile             string   `json:"profile"`
	Picture             string   `json:"picture"`
	Website             string   `json:"website"`
	Email               string   `json:"email"`
	EmailVerified       bool     `json:"email_verified"`
	Gender              string   `json:"gender"`
	Birthdate           string   `json:"birthdate"`
	Zoneinfo            string   `json:"zoneinfo"`
	Locale              string   `json:"locale"`
	PhoneNumber         string   `json:"phone_number"`
	PhoneNumberVerified bool     `json:"phone_number_verified"`
	UpdatedAt           int      `json:"updated_at"`
	ClaimsLocales       string   `json:"claims_locales"`
}

type Role

type Role struct {
	Id                 string      `json:"id"`
	Name               string      `json:"name"`
	Description        string      `json:"description"`
	ScopeParamRequired interface{} `json:"scopeParamRequired"`
	Composite          bool        `json:"composite"`
	Composites         interface{} `json:"composites"`
	ClientRole         bool        `json:"clientRole"`
	ContainerId        string      `json:"containerId"`
	Attributes         interface{} `json:"attributes"`
}

func (Role) RoleToGRpcResponse

func (r Role) RoleToGRpcResponse() user.RoleResponse

type UserRepresentation

type UserRepresentation struct {
	Id                         string                 `json:"id,omitempty"`
	CreatedTimestamp           int64                  `json:"createdTimestamp,omitempty"`
	Username                   string                 `json:"username,omitempty"`
	Enabled                    bool                   `json:"enabled"`
	Totp                       bool                   `json:"totp,omitempty"`
	EmailVerified              bool                   `json:"emailVerified"`
	FirstName                  string                 `json:"firstName,omitempty"`
	LastName                   string                 `json:"lastName,omitempty"`
	Email                      string                 `json:"email,omitempty"`
	DisableableCredentialTypes []interface{}          `json:"disableableCredentialTypes,omitempty"`
	RequiredActions            []interface{}          `json:"requiredActions,omitempty"`
	NotBefore                  int                    `json:"notBefore,omitempty"`
	Credentials                []Credential           `json:"credentials,omitempty"`
	Access                     Access                 `json:"access,omitempty"`
	Attributes                 map[string]interface{} `json:"attributes,omitempty"`
	RealmRoles                 []string               `json:"realmRoles,omitempty"`
}

func UserGRpcRequestToUser

func UserGRpcRequestToUser(request *user.UserRequest) UserRepresentation

func (UserRepresentation) UpdateUser

func (UserRepresentation) UserToGRpcResponse

func (r UserRepresentation) UserToGRpcResponse() user.UserResponse

Jump to

Keyboard shortcuts

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