auth

package
v0.10.59 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0, MIT Imports: 6 Imported by: 0

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 NewJWTPayloadAnyKV

func NewJWTPayloadAnyKV() 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