Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add authorization url that checks if the user is authorized to access…
… jupyterhub (#19) Add an optional setting that can be used to check whether a user has permission to log in to juptyerhub. After a user is logged in to Magpie, the `MagpieAuthenticator` will make a request to the provided URL and will allow the login if the response is "OK" (ie. < 400) This should be used in combination with a jupyterhub provider setting in Magpie that can be queried through the `/twitcher/ows/verify/` endpoints to enable/disable access to log in to jupyterhub for a specific user or group. Example set up: - Configure Magpie so that when a user logs in to Magpie, the url `http://my.domain.com//twitcher/ows/verify/jupyterhub` will return a 200 response code when the user is allowed to log in to juptyerhub - set `MagpieAuthenticator.authorization_url = "http://my.domain.com//twitcher/ows/verify/jupyterhub"`
- Loading branch information