< Back
Set-PodeCookieSecret
Post
NAME Set-PodeCookieSecret
SYNOPSIS
Stores secrets that can be used to sign cookies.
SYNTAX
Set-PodeCookieSecret -Name <String> -Value <String> [<CommonParameters>]
Set-PodeCookieSecret -Value <String> [-Global] [<CommonParameters>]
DESCRIPTION
Stores secrets that can be used to sign cookies. A global secret can be set for easier retrieval.
PARAMETERS
-Name <String>
The name of the secret to store.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value of the secret to store.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
If flagged, the secret being stored will be set as the global secret.
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PodeCookieSecret -Name 'my-secret' -Value 'shhhh!'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PodeCookieSecret -Value 'hunter2' -Global
RELATED LINKS
SYNOPSIS
Stores secrets that can be used to sign cookies.
SYNTAX
Set-PodeCookieSecret -Name <String> -Value <String> [<CommonParameters>]
Set-PodeCookieSecret -Value <String> [-Global] [<CommonParameters>]
DESCRIPTION
Stores secrets that can be used to sign cookies. A global secret can be set for easier retrieval.
PARAMETERS
-Name <String>
The name of the secret to store.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value of the secret to store.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
If flagged, the secret being stored will be set as the global secret.
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PodeCookieSecret -Name 'my-secret' -Value 'shhhh!'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PodeCookieSecret -Value 'hunter2' -Global
RELATED LINKS