Documentation ¶
Index ¶
- type Auth
- func (a *Auth) CookieForUser(user *model.User) (*http.Cookie, error)
- func (a *Auth) EchoAuthServiceSide() echo.MiddlewareFunc
- func (a *Auth) EchoAuthUserSide() echo.MiddlewareFunc
- func (a *Auth) GRPCAuthFunc(ctx context.Context) (context.Context, error)
- func (a *Auth) NewTokenForService(name string) (string, error)
- func (a *Auth) NewTokenForUser(user *model.User) (string, error)
- type Claims
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth us an authenticator that can 1) Issue jwt token for user or service 2) Create echo jwt middleware for jwt validation.
func (*Auth) EchoAuthServiceSide ¶
func (a *Auth) EchoAuthServiceSide() echo.MiddlewareFunc
func (*Auth) EchoAuthUserSide ¶
func (a *Auth) EchoAuthUserSide() echo.MiddlewareFunc
func (*Auth) GRPCAuthFunc ¶
Click to show internal directories.
Click to hide internal directories.