eventstore

package
v1.43.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MissingFeatureErr added in v0.119.0

func MissingFeatureErr(feature string) error

Types

type IamRepo

type IamRepo struct {
	IAMID string

	IAMV2Query *query.Queries
}

func (*IamRepo) Health

func (repo *IamRepo) Health(ctx context.Context) error

func (*IamRepo) IamByID

func (repo *IamRepo) IamByID(ctx context.Context) (*model.IAM, error)

type TokenVerifierRepo

type TokenVerifierRepo struct {
	TokenVerificationKey crypto.EncryptionAlgorithm
	IAMID                string
	Eventstore           v1.Eventstore
	View                 *view.View
}

func (*TokenVerifierRepo) CheckOrgFeatures added in v0.119.0

func (repo *TokenVerifierRepo) CheckOrgFeatures(ctx context.Context, orgID string, requiredFeatures ...string) error

func (*TokenVerifierRepo) ProjectIDAndOriginsByClientID added in v0.76.1

func (repo *TokenVerifierRepo) ProjectIDAndOriginsByClientID(ctx context.Context, clientID string) (projectID string, origins []string, err error)

func (*TokenVerifierRepo) TokenByID added in v0.93.0

func (repo *TokenVerifierRepo) TokenByID(ctx context.Context, tokenID, userID string) (*usr_model.TokenView, error)

func (*TokenVerifierRepo) VerifierClientID added in v0.52.0

func (repo *TokenVerifierRepo) VerifierClientID(ctx context.Context, appName string) (_ string, err error)

func (*TokenVerifierRepo) VerifyAccessToken

func (repo *TokenVerifierRepo) VerifyAccessToken(ctx context.Context, tokenString, verifierClientID string) (userID string, agentID string, clientID, prefLang, resourceOwner string, err error)

type UserGrantRepo

type UserGrantRepo struct {
	View         *view.View
	IamID        string
	IamProjectID string
	Auth         authz.Config
	Eventstore   v1.Eventstore
}

func (*UserGrantRepo) FillIamProjectID added in v0.22.1

func (repo *UserGrantRepo) FillIamProjectID(ctx context.Context) error

func (*UserGrantRepo) Health

func (repo *UserGrantRepo) Health() error

func (*UserGrantRepo) SearchMyMemberships added in v0.112.5

func (repo *UserGrantRepo) SearchMyMemberships(ctx context.Context) ([]*authz.Membership, error)

func (*UserGrantRepo) SearchMyZitadelPermissions

func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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