Documentation ¶
Index ¶
- func NewForwardAuthHandler(providers *app.Providers) http.Handler
- type AuthService
- func (svc *AuthService) CreateUser(ctx context.Context, userModel models.User, token string) (*models.User, error)
- func (svc *AuthService) GenerateRegistrationToken(ctx context.Context, ...) (*connect.Response[idmv1.GenerateRegistrationTokenResponse], error)
- func (svc *AuthService) Introspect(ctx context.Context, req *connect.Request[idmv1.IntrospectRequest]) (*connect.Response[idmv1.IntrospectResponse], error)
- func (svc *AuthService) Login(ctx context.Context, req *connect.Request[idmv1.LoginRequest]) (*connect.Response[idmv1.LoginResponse], error)
- func (svc *AuthService) Logout(ctx context.Context, req *connect.Request[idmv1.LogoutRequest]) (*connect.Response[idmv1.LogoutResponse], error)
- func (svc *AuthService) RefreshToken(ctx context.Context, req *connect.Request[idmv1.RefreshTokenRequest]) (*connect.Response[idmv1.RefreshTokenResponse], error)
- func (svc *AuthService) RegisterUser(ctx context.Context, req *connect.Request[idmv1.RegisterUserRequest]) (*connect.Response[idmv1.RegisterUserResponse], error)
- func (svc *AuthService) RequestPasswordReset(ctx context.Context, req *connect.Request[idmv1.RequestPasswordResetRequest]) (*connect.Response[idmv1.RequestPasswordResetResponse], error)
- func (svc *AuthService) ValidateRegistrationToken(ctx context.Context, ...) (*connect.Response[idmv1.ValidateRegistrationTokenResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthService ¶
type AuthService struct { idmv1connect.UnimplementedAuthServiceHandler *app.Providers }
func NewService ¶
func NewService(providers *app.Providers) *AuthService
NewService returns a new authentication service that verifies users using repo.
func (*AuthService) CreateUser ¶
func (*AuthService) GenerateRegistrationToken ¶
func (svc *AuthService) GenerateRegistrationToken(ctx context.Context, req *connect.Request[idmv1.GenerateRegistrationTokenRequest]) (*connect.Response[idmv1.GenerateRegistrationTokenResponse], error)
func (*AuthService) Introspect ¶
func (svc *AuthService) Introspect(ctx context.Context, req *connect.Request[idmv1.IntrospectRequest]) (*connect.Response[idmv1.IntrospectResponse], error)
func (*AuthService) Login ¶
func (svc *AuthService) Login(ctx context.Context, req *connect.Request[idmv1.LoginRequest]) (*connect.Response[idmv1.LoginResponse], error)
func (*AuthService) Logout ¶
func (svc *AuthService) Logout(ctx context.Context, req *connect.Request[idmv1.LogoutRequest]) (*connect.Response[idmv1.LogoutResponse], error)
func (*AuthService) RefreshToken ¶
func (svc *AuthService) RefreshToken(ctx context.Context, req *connect.Request[idmv1.RefreshTokenRequest]) (*connect.Response[idmv1.RefreshTokenResponse], error)
func (*AuthService) RegisterUser ¶
func (svc *AuthService) RegisterUser(ctx context.Context, req *connect.Request[idmv1.RegisterUserRequest]) (*connect.Response[idmv1.RegisterUserResponse], error)
func (*AuthService) RequestPasswordReset ¶
func (svc *AuthService) RequestPasswordReset(ctx context.Context, req *connect.Request[idmv1.RequestPasswordResetRequest]) (*connect.Response[idmv1.RequestPasswordResetResponse], error)
func (*AuthService) ValidateRegistrationToken ¶
func (svc *AuthService) ValidateRegistrationToken(ctx context.Context, req *connect.Request[idmv1.ValidateRegistrationTokenRequest]) (*connect.Response[idmv1.ValidateRegistrationTokenResponse], error)
Click to show internal directories.
Click to hide internal directories.