iamecho

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package iamecho exposes the IAM SDK as echo.MiddlewareFunc middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(sdk *iam.SDK, opts ...iam.AuthOption) echo.MiddlewareFunc

Authenticate validates the bearer token and stashes the *authz.User in the echo request context.

func RequireAllPerms

func RequireAllPerms(perms []authz.PermissionKey) echo.MiddlewareFunc

RequireAllPerms accepts the request only if the caller holds every perm.

func RequireAnyPerm

func RequireAnyPerm(perms []authz.PermissionKey) echo.MiddlewareFunc

RequireAnyPerm accepts the request if the caller holds any of perms.

func RequireNoImpersonation

func RequireNoImpersonation() echo.MiddlewareFunc

RequireNoImpersonation blocks impersonated sessions.

func RequirePerm

func RequirePerm(perm authz.PermissionKey) echo.MiddlewareFunc

RequirePerm rejects the request with 403 if the caller lacks perm.

func RequireStepUp

func RequireStepUp(acr string) echo.MiddlewareFunc

RequireStepUp enforces an ACR level.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL