validation

package
v0.0.0-...-2d369e4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DOT = "."

Variables

This section is empty.

Functions

func ExtractAudiences

func ExtractAudiences(aud []interface{}, scopes []interface{}, cid string) []string

func JKUValidator

func JKUValidator(jkuUrl, uaaDomain string) (bool, error)

func ValidateJWT

func ValidateJWT(decodedToken *jwt.Token, clientId, xsAppName string) (bool, error)

takes a decodedToken and checks for XSUAA specific rules (mostly if the audience fits to the configured clientId, xsapp from the XSUAA binding

func ValidateJWTAudience

func ValidateJWTAudience(audiencesFromToken []interface{}, scopesFromToken []interface{}, cidFromToken, clientId, xsAppName string) (bool, error)

Types

type JKUValidationFunc

type JKUValidationFunc func(jkuUrl, uaaDomain string) (bool, error)

type JWTValidationFunc

type JWTValidationFunc func(decodedToken *jwt.Token, clientId, xsAppName string) (bool, error)

Jump to

Keyboard shortcuts

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