Documentation ¶
Index ¶
- func FreshToken(t *Token, freshD time.Duration, termD time.Duration) (string, error)
- type App
- type Auth
- func (h *Auth) AuthToken(ctx context.Context, req *pb.AuthApp, res *pb.Token) error
- func (h *Auth) Authorize(ctx context.Context, req *pb.AuthRequest, res *pb.AuthResponse) error
- func (h *Auth) AuthorizeConfirm(ctx context.Context, req *pb.AuthConfirm, res *metaPb.None) error
- func (h *Auth) CheckTokenScope(ctx context.Context, req *pb.AuthApp, res *pb.AuthScope) error
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct{}
Auth Handler
func (*Auth) Authorize ¶
func (h *Auth) Authorize(ctx context.Context, req *pb.AuthRequest, res *pb.AuthResponse) error
Authorize Scopes
func (*Auth) AuthorizeConfirm ¶
AuthorizeConfirm Scopes
type Token ¶
type Token struct { jwt.StandardClaims // TODO: switch to micro's jwt ? Payload *pb.TokenPayload }
Token of JWT
Click to show internal directories.
Click to hide internal directories.