Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(jwt *jwt.JWT, acc *access.AccessConfig) *AuthInterceptor
func (*AuthInterceptor) Unary ¶
func (interceptor *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
type LoggingService ¶
type LoggingService struct { IAM iam.ResonateIAMServer // contains filtered or unexported fields }
LoggingService represents iam logging service
func NewLoggingService ¶
func NewLoggingService(svc iam.ResonateIAMServer, logger model.Logger) *LoggingService
NewLoggingService creates new Template logging service
func (*LoggingService) Auth ¶
func (ls *LoggingService) Auth(ctx context.Context, req *iam.AuthReq) (resp *iam.AuthResp, err error)
Auth logging
func (*LoggingService) Refresh ¶
func (ls *LoggingService) Refresh(ctx context.Context, req *iam.RefreshReq) (resp *iam.RefreshResp, err error)
Refresh token logging
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents IAM application service
func (*Service) Refresh ¶
func (s *Service) Refresh(c context.Context, req *iam.RefreshReq) (*iam.RefreshResp, error)
Refresh refreshes user's jwt token
type TokenGenerator ¶
TokenGenerator generates new jwt token
Click to show internal directories.
Click to hide internal directories.