Documentation ¶
Index ¶
- Constants
- type Handler
- func (h *Handler) AuthenticateAccount(ctx context.Context, req *pb.AuthenticateAccountRequest) (*pb.AuthenticateAccountResponse, error)
- func (h *Handler) GetChallenge(ctx context.Context, req *pb.GetChallengeRequest) (*pb.GetChallengeResponse, error)
- func (h *Handler) RefreshAccessToken(ctx context.Context, req *pb.RefreshAccessTokenRequest) (*pb.RefreshAccessTokenResponse, error)
- func (h *Handler) RevokeRefreshTokens(ctx context.Context, req *pb.RevokeRefreshTokensRequest) (*pb.RevokeRefreshTokensResponse, error)
- func (h *Handler) VerifyAccessToken(ctx context.Context, req *pb.VerifyAccessTokenRequest) (*pb.VerifyAccessTokenResponse, error)
- type Session
Constants ¶
View Source
const ( InternalServerError string = "An unexpected error occurred while processing your request." SignatureVerificationError string = "Signature verification failed. Please try again." InvalidChallengeError string = "Challenge is invalid. Please try again." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { pb.UnimplementedAuthServer // contains filtered or unexported fields }
func NewHandler ¶
func (*Handler) AuthenticateAccount ¶
func (h *Handler) AuthenticateAccount(ctx context.Context, req *pb.AuthenticateAccountRequest) (*pb.AuthenticateAccountResponse, error)
func (*Handler) GetChallenge ¶
func (h *Handler) GetChallenge(ctx context.Context, req *pb.GetChallengeRequest) (*pb.GetChallengeResponse, error)
func (*Handler) RefreshAccessToken ¶
func (h *Handler) RefreshAccessToken(ctx context.Context, req *pb.RefreshAccessTokenRequest) (*pb.RefreshAccessTokenResponse, error)
func (*Handler) RevokeRefreshTokens ¶
func (h *Handler) RevokeRefreshTokens(ctx context.Context, req *pb.RevokeRefreshTokensRequest) (*pb.RevokeRefreshTokensResponse, error)
func (*Handler) VerifyAccessToken ¶
func (h *Handler) VerifyAccessToken(ctx context.Context, req *pb.VerifyAccessTokenRequest) (*pb.VerifyAccessTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.