allowall

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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