rcc-uchicago / submit

Simple web service for submitting file uploads and associated metadata.
0 stars 4 forks source link

Basic authentication with CNet credentials #13

Open joyrexus opened 10 years ago

joyrexus commented 10 years ago

We want to prompt for CNet credentials (ID & password) on a user's first access to the submit client and validate those credentials against the UChicago LDAP server. If the user doesn't provide valid credentials, they should never get access to the actual page.

Here's a little demo of how to do this with hapi.

My auth-demos show the various component pieces needed for this (viz. HTTP Basic Auth, TLS, and LDAP) each demo-ed in isolation.

For additional context, see this student project description. (Note: this is in private repo accessible to RCC Staff only.)

Note that before deploying to ws.rcc.uchicago.edu, we'll need to use the official SSL key/certification for that machine. (I'll have to give you access.) The cert/key used in the demo are "self-authorized" and only useful for testing purposes.

joyrexus commented 10 years ago

Actually, let's keep the master branch as is and create a cnet-login branch that will include the desired secure authentication.