App for generating API tokens

RESOLVED FIXED in 75

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: peterbe, Assigned: peterbe)

Tracking

unspecified
x86
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa+])

(Assignee)

Description

5 years ago
We need a django app that allows signed in users to generate tokens that they can use to auth against the public API (/api/).

* Each token would map to 1 or more permissions.

* Each token would take an optional notes field where you can type in some free text

* Generated token must have a expiration date. By default this will be 90 days.

Comment 2

5 years ago
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/e6923919055d3b133df9849d4f69cad875ec4de2
fixes bug 971965 - App for generating API tokens, r=AdrianGaudebert

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

5 years ago
QA Steps
========

1. Go to /api/tokens (on stage presumably)
2. Select 0 or more permissions of the ones you have (selecting 0 should yield a validation error)
3. Enter notes
4. Click Save

Things to look out for
----------------------

* Generated API tokens should not be displayed in full unless you click the "Show the whole token" button
* It should be possible to delete generated tokens
* The permissions you chose should be displayed accordingly in your list of generated tokens
* Notes can contain line breaks
Whiteboard: [qa+]

Updated

5 years ago
Target Milestone: --- → 75
(Assignee)

Updated

5 years ago
Assignee: nobody → peterbe
You need to log in before you can comment on or make changes to this bug.