Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUserInfo ¶ added in v0.1.3
func SetUserInfo(ctx echo.Context)
func UserContainsAllRoles ¶
func UserContainsAllRoles(roles *[]string) echo.MiddlewareFunc
func UserContainsAnyRole ¶
func UserContainsAnyRole(roles *[]string) echo.MiddlewareFunc
Types ¶
type AuthenticationMiddleware ¶
type AuthenticationMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthenticationMiddleware ¶
func NewAuthenticationMiddleware(firebase *firebase.App) *AuthenticationMiddleware
func (*AuthenticationMiddleware) ValidateJWT ¶
func (m *AuthenticationMiddleware) ValidateJWT(ctx context.Context, IDToken string) error
Click to show internal directories.
Click to hide internal directories.