Documentation ¶
Index ¶
Constants ¶
View Source
const (
Issuer = "clouditor"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { auth.UnimplementedAuthenticationServer TokenSecret string }
Service is an implementation of the gRPC Authentication service
func (Service) CreateDefaultUser ¶ added in v1.3.3
CreateDefaultUser creates a default user in the database
func (Service) Login ¶
func (s Service) Login(_ context.Context, request *auth.LoginRequest) (response *auth.LoginResponse, err error)
Login handles a login request
type UserClaims ¶
type UserClaims struct { jwt.RegisteredClaims 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.