-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #38124 - Invalidate tokens for specific user/users
- Loading branch information
1 parent
fb0970e
commit 5316605
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module HammerCLIForeman | ||
class RegistrationTokens < HammerCLIForeman::Command | ||
resource :registration_tokens | ||
command_name 'registration-tokens' | ||
desc _('Manage registration tokens') | ||
|
||
class InvalidateMultipleCommand < HammerCLIForeman::DeleteCommand | ||
action :invalidate_jwt_tokens | ||
command_name 'invalidate-multiple' | ||
success_message _('Successfully invalidated registration tokens.') | ||
|
||
build_options | ||
end | ||
|
||
class InvalidateCommand < HammerCLIForeman::SingleResourceCommand | ||
action :invalidate_jwt | ||
command_name 'invalidate' | ||
success_message _('Successfully invalidated registration tokens.') | ||
|
||
build_options | ||
end | ||
|
||
autoload_subcommands | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters