auth

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllowMissingAuthClients = "ALLOW_MISSING_AUTH_CLIENTS"
	RbacPolicyEnvVar        = "RBAC_POLICY_PATH"
)

making it a constant to satisfy go-mnd linter.

Variables

This section is empty.

Functions

func AuthenticationAuthorizationInterceptor

func AuthenticationAuthorizationInterceptor(next echo.HandlerFunc) echo.HandlerFunc

AuthenticationAuthorizationInterceptor performs REST call authentication (i.e., extracts JWT out of the call and checks that it is valid). This is necessary prerequisite for Role-Based Access Control (RBAC). It also authorizes the REST call. TODO refactor with: https://github.com/onosproject/onos-lib-go/blob/0a89e6802883d5921d425cf039f137cfc4d0389b/pkg/grpc/auth/auth.go#L32

Types

This section is empty.

Jump to

Keyboard shortcuts

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