Comments (3)
CalNet is Apero CAS, which is definitely not a popular protocol for libraries like this to support. There is a 3rd-party plug-in for django-allauth, https://github.com/aureplop/django-allauth-cas . Allauth is pretty heavy for our use case, but it seems nice enough to use. Explored it some in my fork.
from hknweb.
When we implement this with Google OAuth credentials with the hkn-ops account, we'll need to add the following entries to the secrets.py (encrypted):
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '...'
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '...'
source: https://python-social-auth.readthedocs.io/en/latest/developer_intro.html
from hknweb.
ocfweb does calnet auth, and it doesn't seem too bad, although I'm not sure if it needs any kind of registration with the university to get it all set up.
There's this decorator (https://github.com/ocf/ocfweb/blob/54a90774442bbef072185d338129c942b582661b/ocfweb/auth.py#L44-L62), added to paths that need auth (probably would need one for general auth and then a selection between google apps and calnet on a separate page?). I do think CalNet auth would be pretty valuable, most crucially for candidates, since they don't have a HKN email but should all have CalNet logins.
Some other relevant code snippets:
https://github.com/ocf/ocfweb/blob/9a138f8819040279554bc1b3bc83a18199239346/ocfweb/login/calnet.py
https://github.com/ocf/ocflib/blob/8776681464253c710aca7f963eeff6b662635a2b/ocflib/ucb/cas.py
https://github.com/ocf/ocflib/blob/8776681464253c710aca7f963eeff6b662635a2b/tests/ucb/cas_test.py
from hknweb.
Related Issues (20)
- Event deletion doesn't delete linked GCal event
- Using "conda" instead of Vagrant for M1 and Windows bugginess HOT 2
- Display Citadel logo in hkn-rails and hknweb
- Prodev only slots on hkn-rails tutor calendar HOT 2
- Provision Terence Neo Berkeley HKN accounts HOT 3
- Dynamic Solution to Upload and Display Company Logos HOT 1
- Automated Pip Dependency Version Checker
- "Upcoming" and "All" events filter is not discoverable on all RSVPs page
- Private events on "Upcoming Events" on the home page are visible while not logged in
- Event requirement calculation is suboptimal
- Revisit model field `max_length` properties
- Improve candidate account creation using bulk create
- Candidate account creation is case sensitive and fails on duplicate emails
- Test coverage not at 85% due to candidate account creation
- Events calendar width doesn't fit in parent
- Explore ability to upgrade Python to newer version
- Event Calendar as Endpoint, rather than HTML Injection
- Phantom event on google calendar HOT 3
- Event Calendar Clear Filters Bug
- Improve candidate account creation process HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hknweb.