auth

package
v0.13.177 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0, MIT Imports: 6 Imported by: 1

Documentation

Overview

Package auth implements custom predicates to match based on content of the HTTP Authorization header.

This predicate can be used to match a route based on data in the 2nd part of a JWT token, for example based on the issuer.

Examples:

    // one key value pair has to match
    example1: JWTPayloadAnyKV("iss", "https://accounts.google.com", "email", "skipper-router@googlegroups.com")
	-> "http://example.org/";
    // all key value pairs have to match
    example2: * && JWTPayloadAllKV("iss", "https://accounts.google.com", "email", "skipper-router@googlegroups.com")
	-> "http://example.org/";

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWTPayloadAllKV

func NewJWTPayloadAllKV() routing.PredicateSpec

func NewJWTPayloadAllKVRegexp added in v0.10.271

func NewJWTPayloadAllKVRegexp() routing.PredicateSpec

func NewJWTPayloadAnyKV

func NewJWTPayloadAnyKV() routing.PredicateSpec

func NewJWTPayloadAnyKVRegexp added in v0.10.271

func NewJWTPayloadAnyKVRegexp() routing.PredicateSpec

Types

This section is empty.

Jump to

Keyboard shortcuts

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