publicpath

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package publicpath decides which requests goapiauth's middleware passes with no credential.

Index

Constants

View Source
const Metadata = "/.well-known/oauth-protected-resource"

Metadata is where RFC 9728 puts an API's metadata, for an API served at the root of its host.

Variables

This section is empty.

Functions

func Admits

func Admits(path string, public []string) bool

Admits reports whether a request for path passes with no credential: it is Metadata, which a CLI reads before it holds a token, or one of public.

Types

This section is empty.

Jump to

Keyboard shortcuts

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