Skip to content

Commit

Permalink
Add Hammer support for invalidating users JWTs
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 committed Jan 30, 2025
1 parent 1bef83a commit b166c15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions robottelo/cli/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ def access_token(cls, action=None, options=None):
cls.command_sub = f'access-token {action}'
return cls.execute(cls._construct_command(options), output_format='csv')

@classmethod
def registration_tokens(cls, options=None):
"""
Usage:
hammer user registration-tokens [OPTIONS]
"""
cls.command_sub = 'registration-tokens invalidate'
return cls.execute(cls._construct_command(options), output_format='csv')

@classmethod
def mail_notification_add(cls, options=None):
"""
Expand Down

0 comments on commit b166c15

Please sign in to comment.