Skip to content

ConvertFrom-PodeJwt

SYNOPSIS

Convert and return the payload of a JWT token.

SYNTAX

Secret (Default)

ConvertFrom-PodeJwt -Token <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

Signed

ConvertFrom-PodeJwt -Token <String> [-Secret <Object>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

Ignore

ConvertFrom-PodeJwt -Token <String> [-IgnoreSignature] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

Convert and return the payload of a JWT token, verifying the signature by default with support to ignore the signature.

EXAMPLES

EXAMPLE 1

ConvertFrom-PodeJwt -Token "eyJ0eXAiOiJKV1QiLCJhbGciOiJoczI1NiJ9.eyJleHAiOjE2MjI1NTMyMTQsIm5hbWUiOiJKb2huIERvZSIsInN1YiI6IjEyMyJ9.LP-O8OKwix91a-SZwVK35gEClLZQmsORbW0un2Z4RkY"

PARAMETERS

-IgnoreSignature

Skip signature verification, and return the decoded payload.

Type: SwitchParameter
Parameter Sets: Ignore
Aliases:

Required: False
Position: Named
Default value: False
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

-Secret

The Secret, as a string or byte[], to verify the token's signature.

Type: Object
Parameter Sets: Signed
Aliases:

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

-Token

The JWT token.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
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