Skip to content

Conversation

@azmeuk
Copy link
Member

@azmeuk azmeuk commented Sep 26, 2023

This PR implements RFC9068 and fixes #427.

It implements:

  • a token generator that builds JWT access tokens
  • an introspection endpoint that introspects JWT access tokens
  • a resource protector that validate authorizations against a JWT access token
  • a revocation endpoint that refuses to revoke JWT access tokens

Everything is documented, and coverage is almost 100%, except on one part I will directly comment on the code.

I have left some comments for thing to be implemented with #524

Some notes about the implementation:

  • resource protectors can take other arguments than scope, since RFC9068 introduces the groups, entitlements and roles claims to validate accesses
  • register_endpoint can take objects, and not just classes
  • I have not used joserfc yet. I thought it would be better to migrate the whole authlib library at once.

@lepture
Copy link
Member

lepture commented Oct 6, 2023

@azmeuk Is it ready for reviewing? If not, you can convert it to draft at first.

@azmeuk
Copy link
Member Author

azmeuk commented Oct 6, 2023

Yes, this is ready for review!

@lepture lepture merged commit 701113f into authlib:master Nov 21, 2023
@azmeuk azmeuk deleted the rfc9068 branch November 21, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC9068: JWT access token

2 participants