swp-fu-eid / eid-fu-swp

Docker-based REST API implemented with Django and restframework.
MIT License
2 stars 1 forks source link

Oidc example client #36

Closed m273d15 closed 7 years ago

m273d15 commented 7 years ago

This javascript client uses the OpenID Connect protocol to authenticate. If the authentication was successful the client simply visualizes the result of the authentication in a table. E.g. if the scope openid profile email is set, the email would be shown in this table. The page is not styled via css, since our focus lies on functionality.

The client was created based on the example client of the django oidc plugin, but i think i changed nearly everything, since i used another oidc js library.

infrastructure

The Dockerfile creates an image where the files index_tmpl.html and process_tmpl.py are in the directory /root. The entrypoint script executed process_tmpl.py in order to inject the environment variables (CLIENT_ID, REDIRECT_URL, AUTHORITY_URL) into the html page. After this page is created, it is served by the python SimpleHTTPServer.

corresponding issue: #31

nils-wisiol commented 7 years ago

Please also add env varibales to .env.default