Story #2358
closedAs a user, I can authenticate with username and password stored in Pulp
100%
Description
Configure Pulp so that:
- Basic Auth (with credentials stored in Pulp) works against any protected API endpoint
- only authenticated users have access to the API
(use permissions available in DRF out-of-the-box we do not want permissions to be more granular for MVP)
Related issues
Updated by ttereshc about 8 years ago
- Blocked by Task #2243: Create custom django User model added
Updated by ttereshc about 8 years ago
- Blocks Story #2359: As a user, I can use JWT tokens for authenticaton added
Updated by ttereshc about 8 years ago
- Related to Task #2090: Create a plan for user/auth in 3.0 added
Updated by mhrivnak about 8 years ago
- Description updated (diff)
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
Updated by dkliban@redhat.com about 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by dkliban@redhat.com about 8 years ago
As part of this story, I am also adding a new management command called 'reset-admin-password'. This command will be invoked in the following way:
python manage.py reset-admin-password
Afterwards, the user will be prompted to enter a new password for the 'admin' user of Pulp.
Another way to invoke the command would be with '--random' argument. This would generate a random password for the user 'admin' and then output to stdout.
Our dev setup script could ask the developer to enter a password for 'admin' user. The spec file for the RPM could use this command to create 'admin' user with a random password.
Updated by dkliban@redhat.com about 8 years ago
- Status changed from ASSIGNED to POST
Added by dkliban@redhat.com about 8 years ago
Added by dkliban@redhat.com about 8 years ago
Revision 7ae3e451 | View on GitHub
Adds authentication to the REST API
All API views now require authentication. The password for the 'admin' user can now be set using the 'reset-admin-password' django management command. The new command takes an optional '--random' argument.
Updated by dkliban@redhat.com about 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|7ae3e4511a32dc2d0cf86bfeaf1a1aaa97af517d.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Adds authentication to the REST API
All API views now require authentication. The password for the 'admin' user can now be set using the 'reset-admin-password' django management command. The new command takes an optional '--random' argument.
closes #2358 https://pulp.plan.io/issues/2358