external help file | Module Name | online version | schema |
---|---|---|---|
PSAuthClient-help.xml |
PSAuthClient |
2.0.0 |
Test the signature of a JSON Web Token (JWT)
Test-JsonWebTokenSignature [-jwtInput] <Object> [-SigningCertificate <X509Certificate2>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Test-JsonWebTokenSignature [-jwtInput] <Object> -client_secret <Object> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Automatically attempt to test the signature of a JSON Web Token (JWT) by using the issuer discovery metadata to get the signing certificate if no signing certificate or secret was provided.
Test-JsonWebTokenSignature -jwtInput $jwt
Decodes the JWT and attempts to verify the signature using the issuer discovery metadata to get the signing certificate if no signing certificate or secret was provided.
Test-JsonWebTokenSignature -jwtInput $jwt -SigningCertificate $cert
Decodes the JWT and attempts to verify the signature using the provided certificate.
Test-JsonWebTokenSignature -jwtInput $jwt -client_secret $secret
Decodes the JWT and attempts to verify the signature using the provided client secret.
The JSON Web Token (string) to be must be in the form of a valid JWT.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
X509Certificate2 object to be used for RSA signature verification.
Type: X509Certificate2
Parameter Sets: certificate
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Client secret to be used for HMAC signature verification.
Type: Object
Parameter Sets: client_secret
Aliases:
Required: True
Position: Named
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: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.