package
0.0.5
Repository: https://github.com/imkira/gcp-iap-auth.git
Documentation: pkg.go.dev

# Functions

CreatePublicKey creates a PublicKey from a byte slice.
DecodePublicKeys decodes all public keys from the given Reader.
FetchPublicKeys downloads and decodes all public keys from Google.
NewAudience returns an Audience from a string.
ParseAudience parses an Audience from a string.
RequestClaims checks the validity and returns the claims in the request.
ValidateRequestClaims checks the validity of the claims in the request.

# Variables

HTTPClient is the default HTTP Client to use for fetching public keys.
PublicKeysURL is the URL from which public keys will be fetched.

# Structs

Claims represents parsed JWT Token Claims.
Config specifies the parameters for which to perform validation of JWT tokens in requests against.

# Type aliases

Audience is a string wrapper to provide validation logic for GCP IAP audience URLs.
PublicKey are Google's public keys to use for JWT token validation.