Skip to content

JWT decoding depends upon deprecated function #773

Closed
@tpdownes

Description

@tpdownes

Environment details

  • OS: Debian 11 (bullseye)
  • Python version: 3.9.2
  • pip version: 20.3.4
  • google-auth version: 1.30

Steps to reproduce

Decode a JWT token from Google Cloud Identity-Aware Proxy

Error

The following deprecation warnings are issues from the cryptography library:

/usr/local/lib/python3.9/dist-packages/google/auth/crypt/es256.py:56: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
/usr/local/lib/python3.9/dist-packages/google/auth/crypt/es256.py:57: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

The changes necessary seem self evident. The function in question exists in Python 3.2+ and therefore falls within the currently stated supported versions (3.5+).

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions