Documentation ¶
Index ¶
- type Providers
- func (p *Providers) AddAccessToken(user models.User, roles []models.Role, ttl time.Duration, parentTokenID string, ...) (string, string, error)
- func (p *Providers) AddRefreshToken(user models.User, roles []models.Role, kind string, headers http.Header) (string, string, error)
- func (p *Providers) CreateSignedJWT(user models.User, roles []models.Role, parentTokenID string, ttl time.Duration, ...) (string, string, error)
- func (p *Providers) GenerateRegistrationToken(ctx context.Context, creator models.User, maxCount uint64, ttl time.Duration, ...) (string, error)
- func (p *Providers) GetUserProfileProto(ctx context.Context, usr models.User) (*idmv1.Profile, error)
- func (p *Providers) HandleRequestedRedirect(ctx context.Context, requestedRedirect string) (string, error)
- func (p *Providers) SendMailVerification(ctx context.Context, user models.User, mail models.EMail) error
- func (p *Providers) ValidateUserExtraData(pb *structpb.Struct) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Providers ¶
type Providers struct { TemplateEngine *tmpl.Engine SMSSender sms.Sender Mailer mailer.Mailer Datastore *repo.Repo Config config.Config Common *common.Service ProtoRegistry *protoregistry.Files Validator *protovalidate.Validator Cache cache.Cache }
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.