< Back

Test-PodeCookieSigned

Sat Jan 18, 2020 7:20 pm

NAME Test-PodeCookieSigned



SYNOPSIS

Tests if a cookie on the Request is validly signed.





SYNTAX

Test-PodeCookieSigned [-Name] <String> [[-Secret] <String>] [<CommonParameters>]





DESCRIPTION

Tests if a cookie on the Request is validly signed, by attempting to unsign it using some secret.





PARAMETERS

-Name <String>

The name of the cookie to test.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Secret <String>

A secret to use for attempting to unsign the cookie's value.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-PodeCookieSigned -Name 'Views' -Secret 'hunter2'















RELATED LINKS