bingoiam

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBingoIAMOAuth2Driver

func NewBingoIAMOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver

Types

type SApp

type SApp struct {
	SBase
	Name        string `json:"title"`
	TenantId    string `json:"tenantId"`
	AppType     string `json:"appType"`
	ProjectId   string `json:"projectId"`
	Description string `json:"description"`
}

type SBase

type SBase struct {
	Id         string    `json:"id"`
	Name       string    `json:"name"`
	Code       string    `json:"code"`
	Email      string    `json:"email"`
	Mobile     string    `json:"mobile"`
	ParentId   string    `json:"parentId"`
	ExternalId string    `json:"externalId"`
	Active     bool      `json:"active"`
	IsDeleted  bool      `json:"isDeleted"`
	CreatedAt  time.Time `json:"createdAt"`
	CreatedBy  string    `json:"createdBy"`
	UpdatedAt  time.Time `json:"updatedAt"`
	UpdatedBy  string    `json:"updatedBy"`
}

type SBingoIAMDriverFactory

type SBingoIAMDriverFactory struct{}

func (SBingoIAMDriverFactory) IdpAttributeOptions

func (drv SBingoIAMDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions

func (SBingoIAMDriverFactory) NewDriver

func (drv SBingoIAMDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver

func (SBingoIAMDriverFactory) TemplateName

func (drv SBingoIAMDriverFactory) TemplateName() string

func (SBingoIAMDriverFactory) ValidateConfig

func (drv SBingoIAMDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error

type SBingoIAMOAuth2Driver

type SBingoIAMOAuth2Driver struct {
	oauth2.SOAuth2BaseDriver
	// contains filtered or unexported fields
}

func (*SBingoIAMOAuth2Driver) Authenticate

func (drv *SBingoIAMOAuth2Driver) Authenticate(ctx context.Context, code string) (map[string][]string, error)

func (*SBingoIAMOAuth2Driver) GetSsoRedirectUri

func (drv *SBingoIAMOAuth2Driver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)

func (*SBingoIAMOAuth2Driver) Sync

func (drv *SBingoIAMOAuth2Driver) Sync(ctx context.Context, idpId string) error

type SOrganization

type SOrganization struct {
	SBase
	TenantId string `json:"tenantId"`
}

type SProject

type SProject struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	TenantId string `json:"tenantId"`
}

type STenant

type STenant struct {
	SBase
}

type SUser

type SUser struct {
	SBase
	OrgId    string `json:"orgId"`
	UserName string `json:"userName"`
	TenantId string `json:"tenantId"`
}

Jump to

Keyboard shortcuts

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