Skip to content
A demonstration on how to authentified a user in django using the CYCLONE federation provider with Apache 2 and mod_oidc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apache2
django_example
.gitignore
Dockerfile
README.md
build.sh
django-openid.conf
run.sh
settings.conf

README.md

OpenID-Connect example with Apache2, SSL, the Cyclone Federation Provider and Django

How to run:

# Build with (docker)[https://www.docker.com]
./build.sh

# Run on localhost
./run.sh

# Run on a distant server
edit `settings.conf` and FQDN variable
./run.sh


# Stopping and removing ALL container
docker rm -f $(docker ps -aq)

Visit https://localhost, for the openid-connect example. Once connected visit https://localhost/polls

OIDCRemoteUserClaim setting can be used to specify which claim to use to set REMOTE_USER in apache2.

Known problem

Error 100 in apt-get update

If you encounter an error 100 during the build with the apt-get update, it can means that you are behind a firewall that is blocking some dns resolution. To fix it, uncomment and adapte DNS_FOR_DOCKER variable in settings.conf.

attempt to write a readonly database

Note that httpd inside the container must have execution right on PROJECT_ROOT, and rwx on $PROJECT_ROOT/db.sqlite3.

You can’t perform that action at this time.