New PodeAuthTwitterScheme - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Authentication schema: 2.0.0
Create an OAuth2 auth scheme for Twitter.
New-PodeAuthTwitterScheme [-ClientId] <String> [[-ClientSecret] <String>] [[-RedirectUrl] <String>]
[[-Middleware] <Object[]>] [-UsePKCE] [-ProgressAction <ActionPreference>] [<CommonParameters>]
A wrapper for New-PodeAuthScheme and OAuth2, which builds an OAuth2 scheme for Twitter apps.
New-PodeAuthTwitterScheme -ClientId some_id -ClientSecret 1234.abc
New-PodeAuthTwitterScheme -ClientId some_id -UsePKCE
The Client ID from registering a new app.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe Client Secret from registering a new app (this is optional when using PKCE).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAn array of ScriptBlocks for optional Middleware to run before the Scheme's scriptblock.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
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: FalseAn optional OAuth2 Redirect URL (default: <host>/oauth2/callback)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIf supplied, OAuth2 authentication will use PKCE code verifiers.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.