allowall

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package allowall provides a no-op authz.Authorizer that permits every request.

It is the framework default binding for authz.Authorizer and is appropriate for local development, unit tests, and services that enforce authorization at a different layer (for example, an upstream gateway).

Never include this in a production wire set unless you are certain that authorization is handled elsewhere.

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(Provide)

ProviderSet wires the no-op allow-all Authorizer as authz.Authorizer. Include this set in a wire.Build call to get default allow-all semantics. Production deployments should provide their own Authorizer binding instead of including this set.

Functions

func Provide

func Provide() authz.Authorizer

Provide returns a no-op Authorizer bound to the authz.Authorizer interface. This is the wire provider used by ProviderSet.

Types

type Authorizer

type Authorizer struct{}

Authorizer is a no-op implementation of authz.Authorizer that permits every request and returns the incoming context unchanged.

func (Authorizer) Authorize

Authorize always returns the incoming context unchanged and a nil error.

Jump to

Keyboard shortcuts

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