Documentation ¶
Index ¶
- func AdminAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func PublicAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func UTCNow() time.Time
- func VerifyIdentity(address string) (map[string]interface{}, error)
- type Authenticator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminAuthInterceptor ¶
func AdminAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
AdminAuthInterceptor validates the token provided via authorization metadata on all incoming grpc calls
func PublicAuthInterceptor ¶
func PublicAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
PublicAuthInterceptor validates the token provided via authorization metadata on all incoming grpc calls
func VerifyIdentity ¶
Types ¶
type Authenticator ¶
func NewAuthenticator ¶
func NewAuthenticator() (*Authenticator, error)
Click to show internal directories.
Click to hide internal directories.