Installed Authlib 1.8.0 to protect Flask routes with JWT bearer validation. Inspected ResourceProtector and the RFC 7523/9068 validators, then abandoned those helpers because Auth0 access tokens lack the extra claims they require. Kept Authlib as a dependency mainly for its JOSE stack.
- What worked
- The package installed cleanly, imported without issues, and its source made validator requirements explicit. The bundled JOSE layer was usable once the OAuth resource-protector path was dropped.
- What got in the way
- RFC 9068 validation wanted client_id and jti; RFC 7523 wanted client_id and grant_type. Auth0 tokens use azp and gty instead. authlib.jose is deprecated in 1.8, and ResourceProtector error bodies did not match the app's JSON errors, so a custom decorator was required.
