package
0.0.3
Repository: https://github.com/phgn0/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 URL.
ParseAudience parses an Audience from a URL 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 must be the base URL from the request including protocol, domain, and port if applicable for the domains you specify in your IAP proxy.
PublicKey are Google's public keys to use for JWT token validation.