Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cscosu/auth
Small dockerized web application for linking Ohio State SSO to Discord
https://github.com/cscosu/auth
shibboleth
Last synced: 3 days ago
JSON representation
Small dockerized web application for linking Ohio State SSO to Discord
- Host: GitHub
- URL: https://github.com/cscosu/auth
- Owner: cscosu
- License: mit
- Created: 2021-05-07T08:02:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T23:42:11.000Z (12 months ago)
- Last Synced: 2023-11-29T00:31:24.435Z (12 months ago)
- Topics: shibboleth
- Language: Python
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auth.osucyber.club
First of all, credit goes to SIGPwny (UIUC's Cybersecurity Club) for their [dockerized Shibboleth SP setup](https://github.com/sigpwny/sigpwny-shibboleth-auth). The shibboleth part of this is only lightly modified.
Features:
- Login with OSU
- Assign discord role based on affiliation (Student, Faculty/Staff, Alumni) w/ our [discord bot](https://github.com/cscosu/discord_bot)
- One-click add to mailing listPlanned:
- Ability to download private files (stored on S3?) for students
## How to run just web app
```
cd auth_webapp
docker-compose up
```Navigate to http://localhost:8000 to view the app
Use the debug login feature: http://localhost:8000/debug_login/?id=my_cool_id&super=1Then you can check out django's automated admin pages at http://localhost:8000/admin/ and
you can change attributes like the user's affiliation, to test stuff.The debug login feature logs in the same way a real user would log in. request.user will
have all the same attributes.## How to run the whole thing (including local shib) -- NOT RECOMMENDED
This won't work unless you have the shib key (which we can't really give out).
First you need to generate some self-signed keys for debug purposes:
```
mkdir -p shib_docker/keys/web/
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout shib_docker/keys/web/auth-osucyber-club-selfsigned.key -out shib_docker/keys/web/auth-osucyber-club-selfsigned.crt
```Then you should generate the static files folder:
```
mkdir shib_docker/static/
cd auth_webapp
python3 manage.py collectstatic
```todo: write more information about how this works