auth

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationData

type AuthorizationData struct {
	Token        string                 `json:"token"`
	Role         authEnums.HorusecRoles `json:"role"`
	CompanyID    uuid.UUID              `json:"companyID"`
	RepositoryID uuid.UUID              `json:"repositoryID"`
}

func (*AuthorizationData) ToBytes

func (a *AuthorizationData) ToBytes() []byte

func (*AuthorizationData) Validate

func (a *AuthorizationData) Validate() error

type ConfigAuth

type ConfigAuth struct {
	ApplicationAdminEnable bool                   `json:"applicationAdminEnable"`
	AuthType               auth.AuthorizationType `json:"authType"`
}

func ParseInterfaceToConfigAuth

func ParseInterfaceToConfigAuth(content interface{}) (configAuth ConfigAuth, err error)

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Otp      string `json:"otp"`
}

func (*Credentials) ToBytes

func (c *Credentials) ToBytes() []byte

func (*Credentials) Validate

func (c *Credentials) Validate() error

type LdapAuthResponse

type LdapAuthResponse struct {
	AccessToken        string    `json:"accessToken"`
	ExpiresAt          time.Time `json:"expiresAt"`
	Username           string    `json:"username"`
	Email              string    `json:"email"`
	IsApplicationAdmin bool      `json:"isApplicationAdmin"`
}

Jump to

Keyboard shortcuts

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