Skip to content

Test-PodeJwt

SYNOPSIS

Validates JSON Web Tokens (JWT) claims.

SYNTAX

Test-PodeJwt [-Payload] <PSObject> [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Validates JSON Web Tokens (JWT) claims. Checks time related claims: 'exp' and 'nbf'.

EXAMPLES

EXAMPLE 1

Test-PodeJwt @{exp = 2696258821 }

EXAMPLE 2

Test-PodeJwt -Payload @{nbf = 1696258821 }

PARAMETERS

-Payload

Object containing JWT claims. Some of them are: - exp (expiration time) - nbf (not before)

Type: PSObject
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES