This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
130 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,9 @@ Contents: | |
:maxdepth: 2 | ||
|
||
installation | ||
sessions | ||
registration | ||
invites | ||
demo | ||
ldap | ||
ldap-developer-notes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
================= | ||
Invitation System | ||
================= | ||
|
||
Mozillians has an inivitation system that let's vouched users invite others to | ||
join Mozillians. These users who join are automatically vouched. | ||
|
||
|
||
The Model | ||
--------- | ||
|
||
The invite model stores the following: | ||
|
||
.. py:attribute:: Invite.inviter | ||
This is the ``uid`` of the vouched Mozillian who is doing the inviting. | ||
|
||
.. py:attribute:: Invite.recipient | ||
This is the email address of where the invitation is sent. | ||
|
||
.. py:attribute:: Invite.code | ||
This is the randomly generated invite code. This code is used in the | ||
:ref:`registration` system. | ||
|
||
.. py:attribute:: Invite.redeemer | ||
This is the ``uid`` of the newly created user who has redeemed the invite. | ||
|
||
.. py:attribute:: Invite.redeemed | ||
This is the date the invite was redeemed. | ||
|
||
.. py:attribute:: Invite.created | ||
This is the date the invite was created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
============= | ||
LDAP Sessions | ||
============= | ||
|
||
Access to the LDAP directory is done by logging into an LDAP server as the | ||
end-user. This is different | ||
from a database which traditionally has the same privileged account regardless | ||
of who the end user is. | ||
|
||
For example: | ||
|
||
===== =================== ==================== | ||
User LDAP directory user Mysql Database user | ||
===== =================== ==================== | ||
Sally sally@draper.com mozillians@localhost | ||
Gene gene@draper.com mozillians@localhost | ||
Don don@draper.com mozillians@localhost | ||
Bobby bobby@draper.com mozillians@localhost | ||
Betty betty@draper.com mozillians@localhost | ||
===== =================== ==================== | ||
|
||
This means we need to somehow store the users credentials each time they log | ||
in. | ||
|
||
.. note:: | ||
This may change down the road if we implement different LDAP | ||
authentication layers. | ||
|
||
We do this by writing the password to an encrypted cookie in a post-login | ||
signal. | ||
|
||
This takes advantage of the Django's | ||
:ref:`cookie based session backend<django:cookie-session-backend>` and | ||
the new :py:mod:`django.core.signing`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters