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.
Click to show internal directories.
Click to hide internal directories.