Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthInterceptor ¶
func AuthInterceptor(keyFunc func(kid string) *ecdsa.PublicKey) grpc.UnaryServerInterceptor
Types ¶
type AccessTokenClaims ¶
type AccessTokenClaims struct {
jwt.RegisteredClaims
Type string `json:"type"`
FullName string `json:"full_name"`
}
func GetAccessTokenClaims ¶
func GetAccessTokenClaims(ctx context.Context) (*AccessTokenClaims, bool)
type BearerTokenAuth ¶
type BearerTokenAuth struct {
// contains filtered or unexported fields
}
func NewBearerTokenAuth ¶
func (*BearerTokenAuth) GetRequestMetadata ¶
func (*BearerTokenAuth) RequireTransportSecurity ¶
func (b *BearerTokenAuth) RequireTransportSecurity() bool
type RefreshTokenClaims ¶
type RefreshTokenClaims struct {
jwt.RegisteredClaims
Type string `json:"type"`
LoginTime *jwt.NumericDate `json:"login_time"`
}
Click to show internal directories.
Click to hide internal directories.