fluidasserts.format.jwt module

This module allows to check JWT vulnerabilities.

fluidasserts.format.jwt.has_insecure_expiration_time(jwt_token, max_expiration_time=600)

Check if the given JWT has an insecure expiration time.

Parameters
  • jwt_token (str) – JWT to test.

  • max_expiration_time (int) – According to the bussiness rule, (in seconds).

Return type

tuple