skipper: github.com/zalando/skipper/predicates/auth Index | Files

package auth

import "github.com/zalando/skipper/predicates/auth"

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

Package Files

jwt.go

func NewJWTPayloadAllKV Uses

func NewJWTPayloadAllKV() routing.PredicateSpec

func NewJWTPayloadAllKVRegexp Uses

func NewJWTPayloadAllKVRegexp() routing.PredicateSpec

func NewJWTPayloadAnyKV Uses

func NewJWTPayloadAnyKV() routing.PredicateSpec

func NewJWTPayloadAnyKVRegexp Uses

func NewJWTPayloadAnyKVRegexp() routing.PredicateSpec

Package auth imports 7 packages (graph) and is imported by 2 packages. Updated 2019-08-20. Refresh now. Tools for package owners.