Skip to content

v1.1.0 - Linked Roles & Token Revocation

Compare
Choose a tag to compare
@treeben77 treeben77 released this 05 Feb 16:48
· 30 commits to main since this release
a783d63

Changelog

Added Linked Roles Support

  • Added Client.update_linked_roles_metadata(metadata) which takes a list of application role connection metadata
  • Added PartialAccessToken.update_metadata(platform_name=None, username=None, **metadata) platform name and username are strings, and metadata is a keyword args mapping metadata keys to values, accepting the types: bool, int, datetime or a str (only for iso time).

Added Token Revocation Support

  • Added PartialAccessToken.revoke() shorthand to revoke an access token.
  • Added AccessToken.revoke_refresh_token() shorthand to revoke a refresh token.
  • Added Client.revoke_token(token, token_type=None) to revoke any oauth2 token related to the client.