зеркало из https://github.com/mozilla/mentoring.git
Application powering https://mentoring.mozilla.com
26457f8b31 | ||
---|---|---|
frontend | ||
mentoring | ||
static/images | ||
.gitignore | ||
.taskcluster.yml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
Mentorship_Diecut.pdf | ||
README.md | ||
manage.py | ||
requirements.txt | ||
setup.cfg |
README.md
mentoring
This is the app behind the Mozilla Mentoring Program
Structure
- mentoring - main Django project
- enrollment - app handling participant enrollment
- participants - app handling participant data
- pairs - app handling pairing
- frontend - app to render the frontend
- frontend - main React project
Authentication
This app uses Mozilla's SSO for authentication. It requires an Auth0 client be created, with
- Algorithm
RS256
- Redirect URI of
https://<hostname>/oidc/callback/
(note the trailing/
) - At least the Mozilla AD connection enabled ("Allowing Mozilla LDAP with MFA")
Set OIDC_RP_CLIENT_ID
OIDC_RP_CLIENT_SECRET
using the resulting credentials.
The UI automatically redirects to the sign-in URL. There is no way to interact with the UI without first signing in. Signing in creates a Django user and remaining authentication is performed using a Django session.
Members of groups listed in STAFF_GROUPS
have "staff" access to the app.
This includes access to the REST API (/api
) and the Django administration panel (/admin/
).
Those who are not staff have access only to the enrollment form.