Test PodeSseClientIdValid - mdaneri/Pode GitHub Wiki
Test if an SSE connection ClientId is valid.
Test-PodeSseClientIdValid [[-ClientId] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Test if an SSE connection ClientId, passed or from $WebEvent, is valid. A ClientId is valid if it's not signed and we're not signing ClientIds, or if we are signing ClientIds and the ClientId is validly signed.
if (Test-PodeSseClientIdValid) { ... }
if (Test-PodeSseClientIdValid -ClientId 'my-client-id') { ... }
An optional SSE connection ClientId, if not supplied it will be retrieved from $WebEvent.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.