Project

General

Profile

Feature #21514

Add personal access token cli support

Added by Timo Goebel over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Users and roles
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

hammer cli should also support creating and revoking personal access tokens nested under the user resource. Support for this was added in Core #21394.


Related issues

Related to Foreman - Feature #21394: add an api for personal access tokensClosed2017-10-19

Associated revisions

Revision defb07c1 (diff)
Added by Oleh Fedorenko over 2 years ago

Fixes #21514 - Add personal access token cli support

History

#1 Updated by Timo Goebel over 2 years ago

  • Related to Feature #21394: add an api for personal access tokens added

#2 Updated by Tomáš Strachota over 2 years ago

  • Subject changed from add personal access token cli support to Add personal access token cli support

Adding some implementation notes:

API docs for this feature is at <YOUR_FOREMAN_URL>/apidoc/v2/personal_access_tokens.html

Four new commands should be added:

hammer user acces-token list --user=admin
hammer user acces-token info --id=1
hammer user acces-token create --user=admin --name=test_token --expires-at 01/01/2018
hammer user acces-token delete --user=admin --name=test_token

#3 Updated by Oleh Fedorenko over 2 years ago

  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#4 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/350 added

#5 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/theforeman/hammer-cli/pull/271 added

#6 Updated by Oleh Fedorenko over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#7 Updated by Martin Bacovsky over 2 years ago

  • Legacy Backlogs Release (now unused) set to 350

Also available in: Atom PDF