Documentation ¶
Index ¶
- func New(opt *interfaces.AuthOption, tfa *twofa.TwoFa, models interfaces.Models, ...) interfaces.Services
- type Expired
- type Jwt
- func (c *Jwt) GenerateToken(enableTracing bool, ctx context.Context, req *auth.TokenRequestData) (signedToken *auth.UserLoginResponse, err error)
- func (c *Jwt) GetToken(enableTracing bool, ctx context.Context, req *auth.GetTokenRequest) (res *auth.GetTokenResponse, err error)
- func (c *Jwt) Login(enableTracing bool, ctx context.Context, req *auth.UserLoginRequest) (res *auth.UserLoginResponse, err error)
- func (c *Jwt) RefreshToken(enableTracing bool, ctx context.Context, req *auth.RefreshTokenRequest) (res *auth.UserLoginResponse, err error)
- func (c *Jwt) Session(enableTracing bool, ctx context.Context, req *auth.SessionRequest) (res *auth.SessionResponse, err error)
- func (c *Jwt) TerminatedSession(enableTracing bool, ctx context.Context, req *auth.SessionTerminatedRequest) (res *emptypb.Empty, err error)
- func (c *Jwt) ValidateToken(enableTracing bool, tpp auth.TokenType, ctx context.Context, ...) (cl *UserClaims, res *auth.SessionResponse, err error)
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opt *interfaces.AuthOption, tfa *twofa.TwoFa, models interfaces.Models, modelStorage interfaces.Storage) interfaces.Services
Types ¶
type Jwt ¶
type Jwt struct { Option *interfaces.AuthOption // contains filtered or unexported fields }
func (*Jwt) GenerateToken ¶
func (c *Jwt) GenerateToken(enableTracing bool, ctx context.Context, req *auth.TokenRequestData) (signedToken *auth.UserLoginResponse, err error)
func (*Jwt) GetToken ¶
func (c *Jwt) GetToken(enableTracing bool, ctx context.Context, req *auth.GetTokenRequest) (res *auth.GetTokenResponse, err error)
func (*Jwt) Login ¶
func (c *Jwt) Login(enableTracing bool, ctx context.Context, req *auth.UserLoginRequest) (res *auth.UserLoginResponse, err error)
func (*Jwt) RefreshToken ¶
func (c *Jwt) RefreshToken(enableTracing bool, ctx context.Context, req *auth.RefreshTokenRequest) (res *auth.UserLoginResponse, err error)
func (*Jwt) Session ¶
func (c *Jwt) Session(enableTracing bool, ctx context.Context, req *auth.SessionRequest) (res *auth.SessionResponse, err error)
func (*Jwt) TerminatedSession ¶
func (*Jwt) ValidateToken ¶
func (c *Jwt) ValidateToken(enableTracing bool, tpp auth.TokenType, ctx context.Context, req *auth.SessionRequest) (cl *UserClaims, res *auth.SessionResponse, err error)
type UserClaims ¶
type UserClaims struct { jwt.RegisteredClaims auth.UserClaims }
Click to show internal directories.
Click to hide internal directories.