Documentation
¶
Index ¶
- func GetUserProfileProto(ctx context.Context, tx *repo.Queries, cfg config.Config, usr repo.User) (*idmv1.Profile, error)
- type Providers
- func (p *Providers) AddAccessToken(user repo.User, roles []repo.Role, ttl time.Duration, parentTokenID string, ...) (string, string, error)
- func (p *Providers) AddRefreshToken(user repo.User, roles []repo.Role, kind jwt.LoginKind, headers http.Header) (string, string, error)
- func (p *Providers) CreateSignedJWT(user repo.User, roles []repo.Role, parentTokenID string, ttl time.Duration, ...) (string, string, error)
- func (p *Providers) GenerateRegistrationToken(ctx context.Context, creator repo.User, maxCount uint64, ttl time.Duration, ...) (string, error)
- func (p *Providers) GetUserProfileProto(ctx context.Context, usr repo.User) (*idmv1.Profile, error)
- func (p *Providers) HandleRequestedRedirect(ctx context.Context, requestedRedirect string) (string, error)
- func (p *Providers) SendMailVerification(ctx context.Context, user repo.User, mail repo.UserEmail) error
- func (p *Providers) ValidateUserExtraData(pb *structpb.Struct) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Providers ¶
type Providers struct { TemplateEngine *tmpl.Engine SMSSender sms.Sender Mailer mailer.Mailer Datastore *repo.Queries Config config.Config Common *common.Service ProtoRegistry *protoregistry.Files Validator *protovalidate.Validator Cache cache.Cache PolicyEngine *policy.Engine }
func (*Providers) AddAccessToken ¶
func (*Providers) AddRefreshToken ¶
func (*Providers) CreateSignedJWT ¶
func (*Providers) GenerateRegistrationToken ¶
func (*Providers) GetUserProfileProto ¶
func (*Providers) HandleRequestedRedirect ¶
func (*Providers) SendMailVerification ¶
Click to show internal directories.
Click to hide internal directories.