Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
/ oauth-ulb Public archive

OAuth2 service in front ULB netid auth

License

Notifications You must be signed in to change notification settings

UrLab/oauth-ulb

Repository files navigation

ULB OAuth

This repository holds the code for a OAuth2 service in front of the ULB intranet.

By trusting this service (and subsequently the ULB "intranet"), this enables your app to authenticate users with their ULB netid and gather some information about them (first and last names, email address, faculty, ...)

Screenshot of the authorization dialog

The (free and open) reference instance is available at TBD and a demo consumer using it is available at TBD.

Usage

First, login and create a new application at https://TBD/o/applications/ :

  • Choose Client type: confidential and Authorization grant type: Authorization code.
  • Fill Redirect uris with the url of your app (you can use localhost for dev purposes)

TDB

Installation and deployment

This code is intended to be deployed only once and be used as much as you want as an open service.

The reference deployment URL will be referenced here when available.

If you still wish to deploy your own (for development or you don't trust us ?), you may follow the procedure in INSTALL.md

License

© Nikita Marchant, Romain Fontaine - 2018

This code is under the AGPLv3 license.

Acknowledgement

We make heavy use of C4ptainCrunch/libnetid.

Thanks to django-oauth-toolkit to make it so easy to implement a OAuth2 provider.

Thanks to Django, Materialize.css and Let's Encrypt respectively for a great web framework, easy and pretty css framework and a SSL/TLS certificate (required for OAuth2)