Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users with no matching Staff Model instance should be handled more elegantly #34

Closed
profcturner opened this issue Jan 9, 2019 · 3 comments
Labels
Milestone

Comments

@profcturner
Copy link
Owner

Particularly with REMOTE_USER usage someone may be authenticated and even a user auto created for which there is no matching staff entry. This needs to be caught and handled.

Another example is an initially created superuser (but they won't use have a Staff user). This may mean that the most recent version is difficult to install out of the box.

@profcturner profcturner added this to the 2.1.1 milestone Jan 9, 2019
@profcturner profcturner added the bug label Jan 9, 2019
@profcturner
Copy link
Owner Author

One possibility is a Custom Remote User handler.

See:
https://docs.djangoproject.com/en/3.2/howto/auth-remote-user/

and setting create_unknown_user to False

https://docs.djangoproject.com/en/3.2/ref/contrib/auth/

@profcturner
Copy link
Owner Author

For now, at least enhanced guidance is given in the error reporting. Further the context_processor has been fixed not to through a further error in reporting the missing staff object.

@profcturner
Copy link
Owner Author

I think this is good enough for what was intended for 2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant