sso

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.6.15

type Config struct {
	Id     string  `json:"id"`
	Type   string  `json:"type"`
	Name   string  `json:"name"`
	Config Configs `json:"config"`
}

type Configs added in v0.6.15

type Configs struct {
	Issuer        string   `json:"issuer"`
	ClientID      string   `json:"clientID"`
	ClientSecret  string   `json:"clientSecret"`
	RedirectURI   string   `json:"redirectURI"`
	HostedDomains []string `json:"hostedDomains"`
}

type SSOLoginModel added in v0.3.9

type SSOLoginModel struct {
	TableName struct{} `sql:"sso_login_config"`
	Id        int32    `sql:"id,pk"`
	Name      string   `sql:"name,notnull"`
	Label     string   `sql:"label"`
	Url       string   `sql:"url"`
	Config    string   `sql:"config"`
	Active    bool     `sql:"active,notnull"`
	sql.AuditLog
}

type SSOLoginRepository added in v0.3.9

type SSOLoginRepository interface {
	Create(userModel *SSOLoginModel, tx *pg.Tx) (*SSOLoginModel, error)
	Update(userModel *SSOLoginModel, tx *pg.Tx) (*SSOLoginModel, error)
	GetById(id int32) (*SSOLoginModel, error)
	GetAll() ([]SSOLoginModel, error)
	GetActive() (*SSOLoginModel, error)
	Delete(userModel *SSOLoginModel, tx *pg.Tx) (bool, error)
	GetByName(name string) (*SSOLoginModel, error)

	GetConnection() (dbConnection *pg.DB)
}

type SSOLoginRepositoryImpl added in v0.3.9

type SSOLoginRepositoryImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewSSOLoginRepositoryImpl added in v0.3.9

func NewSSOLoginRepositoryImpl(dbConnection *pg.DB) *SSOLoginRepositoryImpl

func (SSOLoginRepositoryImpl) Create added in v0.3.9

func (impl SSOLoginRepositoryImpl) Create(userModel *SSOLoginModel, tx *pg.Tx) (*SSOLoginModel, error)

func (SSOLoginRepositoryImpl) Delete added in v0.3.9

func (impl SSOLoginRepositoryImpl) Delete(userModel *SSOLoginModel, tx *pg.Tx) (bool, error)

func (SSOLoginRepositoryImpl) GetActive added in v0.3.9

func (impl SSOLoginRepositoryImpl) GetActive() (*SSOLoginModel, error)

func (SSOLoginRepositoryImpl) GetAll added in v0.3.9

func (impl SSOLoginRepositoryImpl) GetAll() ([]SSOLoginModel, error)

func (SSOLoginRepositoryImpl) GetById added in v0.3.9

func (impl SSOLoginRepositoryImpl) GetById(id int32) (*SSOLoginModel, error)

func (SSOLoginRepositoryImpl) GetByName added in v0.3.9

func (impl SSOLoginRepositoryImpl) GetByName(name string) (*SSOLoginModel, error)

func (*SSOLoginRepositoryImpl) GetConnection added in v0.3.9

func (impl *SSOLoginRepositoryImpl) GetConnection() (dbConnection *pg.DB)

func (SSOLoginRepositoryImpl) Update added in v0.3.9

func (impl SSOLoginRepositoryImpl) Update(userModel *SSOLoginModel, tx *pg.Tx) (*SSOLoginModel, error)

type SSOLoginService

type SSOLoginService interface {
	CreateSSOLogin(userInfo *bean.SSOLoginDto) (*bean.SSOLoginDto, error)
	UpdateSSOLogin(userInfo *bean.SSOLoginDto) (*bean.SSOLoginDto, error)
	GetById(id int32) (*bean.SSOLoginDto, error)
	GetAll() ([]*bean.SSOLoginDto, error)
	GetByName(name string) (*bean.SSOLoginDto, error)
}

type SSOLoginServiceImpl

type SSOLoginServiceImpl struct {
	K8sUtil *util.K8sUtil
	// contains filtered or unexported fields
}

func NewSSOLoginServiceImpl

func NewSSOLoginServiceImpl(
	logger *zap.SugaredLogger,
	ssoLoginRepository SSOLoginRepository,
	K8sUtil *util.K8sUtil, devtronSecretConfig *util2.DevtronSecretConfig, userAuthOidcHelper auth.UserAuthOidcHelper) *SSOLoginServiceImpl

func (SSOLoginServiceImpl) CreateSSOLogin

func (impl SSOLoginServiceImpl) CreateSSOLogin(request *bean.SSOLoginDto) (*bean.SSOLoginDto, error)

func (SSOLoginServiceImpl) GetAll

func (impl SSOLoginServiceImpl) GetAll() ([]*bean.SSOLoginDto, error)

func (SSOLoginServiceImpl) GetById

func (impl SSOLoginServiceImpl) GetById(id int32) (*bean.SSOLoginDto, error)

func (SSOLoginServiceImpl) GetByName

func (impl SSOLoginServiceImpl) GetByName(name string) (*bean.SSOLoginDto, error)

func (SSOLoginServiceImpl) UpdateSSOLogin

func (impl SSOLoginServiceImpl) UpdateSSOLogin(request *bean.SSOLoginDto) (*bean.SSOLoginDto, error)

Jump to

Keyboard shortcuts

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