rpc

package
v0.0.0-...-6123566 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthInterceptor

func IsAuthInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error)

Types

type IdentityService

type IdentityService struct {
	*proto.UnimplementedIdentityServiceServer
	// contains filtered or unexported fields
}

func NewIdentityService

func NewIdentityService(ds *data.Store, ec *services.EmailClient) *IdentityService

func (*IdentityService) CurrentUser

func (*IdentityService) Generate

func (s *IdentityService) Generate(uid, aid string) (string, string, error)

func (*IdentityService) IsAuth

func (IdentityService) Login

func (*IdentityService) Logout

Logout: - Only delete the refresh token from the database if a token from the existing family was presented; otherwise no action is taken. - This prevents bad actors from using stolen (but still cryptographically valid) tokens from an old family to force logout.

func (*IdentityService) ParseClaims

func (s *IdentityService) ParseClaims(token string) (jwt.MapClaims, error)

func (*IdentityService) Refresh

func (IdentityService) RegisterFinish

func (IdentityService) RegisterPending

func (IdentityService) RegisterStart

func (IdentityService) ResetPasswordFinish

func (IdentityService) ResetPasswordStart

func (IdentityService) UpdateDisplayName

func (IdentityService) UpdateEmailFinish

func (IdentityService) UpdateEmailStart

func (IdentityService) UpdatePassword

type KeyAid

type KeyAid struct{}

type KeyUid

type KeyUid struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL