Documentation
¶
Index ¶
Constants ¶
View Source
const (
Issuer = "clouditor"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { auth.UnimplementedAuthenticationServer TokenSecret string }
Service is an implementation of the gRPC Authentication service
func (Service) HashPassword ¶
HashPassword returns a hash of password using argon2id.
func (Service) Login ¶
func (s Service) Login(ctx context.Context, request *auth.LoginRequest) (response *auth.LoginResponse, err error)
Login handles a login request
type UserClaims ¶
type UserClaims struct { jwt.StandardClaims FullName string `json:"full_name"` EMail string `json:"email"` }
UserClaims extend jwt.StandardClaims with more detailed claims about a user
Click to show internal directories.
Click to hide internal directories.