Project

Profile

Help

Task #2243

Create custom django User model

Added by ttereshc about 3 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 10

Description

Django User model has some limitations like 30 chars for a username, so we have to substitute it with our own one.
It is probably not a bad idea to keep our implementation as close as possible to the Django one, so we will be able to use mostly as-is the related classes like UserManager, UserAdmin. At the same time we will have some attributes which we currently do not use.

In case we use django-guardian for authz, which seems likely, be sure to read this:

https://django-guardian.readthedocs.io/en/stable/userguide/custom-user-model.html


Related issues

Related to Pulp - Task #2090: Create a plan for user/auth in 3.0 CLOSED - CURRENTRELEASE Actions
Blocks Pulp - Task #2356: Add serializer for the user model MODIFIED Actions
Blocks Pulp - Story #2358: As a user, I can authenticate with username and password stored in Pulp MODIFIED Actions

Associated revisions

Revision c6e9964a View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds a custom User model to pulp.app

This commit also changes the label of the Pulp Django app from 'pulp' to 'pulp_app'.
closes #2243
https://pulp.plan.io/issues/2243

Revision c6e9964a View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds a custom User model to pulp.app

This commit also changes the label of the Pulp Django app from 'pulp' to 'pulp_app'.
closes #2243
https://pulp.plan.io/issues/2243

Revision c6e9964a View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds a custom User model to pulp.app

This commit also changes the label of the Pulp Django app from 'pulp' to 'pulp_app'.
closes #2243
https://pulp.plan.io/issues/2243

History

#1 Updated by ttereshc about 3 years ago

  • Related to Task #2090: Create a plan for user/auth in 3.0 added

#2 Updated by mhrivnak about 3 years ago

  • Description updated (diff)

#3 Updated by ttereshc almost 3 years ago

  • Blocks Task #2356: Add serializer for the user model added

#4 Updated by ttereshc almost 3 years ago

  • Blocks Story #2358: As a user, I can authenticate with username and password stored in Pulp added

#5 Updated by mhrivnak almost 3 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

#6 Updated by mhrivnak almost 3 years ago

  • Sprint/Milestone set to 28

#7 Updated by dkliban@redhat.com almost 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#8 Updated by dkliban@redhat.com almost 3 years ago

  • Status changed from ASSIGNED to POST

#9 Updated by dkliban@redhat.com almost 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#10 Updated by bmbouter about 2 years ago

  • Tags deleted (Pulp 3 Modeling)

#11 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 10

#12 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (28)

#13 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#14 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF