This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
CAS & LDAP Documentation #496
Comments
We have this too I just found! |
A new question arises: |
This is definitely a good idea but it should be filed probably in the YaleSTC/wiki repo, since this isn't Reservations-specific. |
Moved to YaleSTC/wiki#2 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We'd like to create some documentation for how to integrate Yale's CAS login and LDAP into a Ruby on Rails application.
Instructions
We should create a short gist (or two) in the YaleSTC organization that explains how to integrate Yale's LDAP into a Ruby on Rails application. We should also investigate what attributes Yale's LDAP has and define what they are to us, like how "uid" is their name for "netid". Maybe this could be easily formatted in a table in a .md file in this gist.
I should note that this will only work on servers running on Yale's campus. So this would work on either your machine or a Yale server, but not on Heroku or anything external like that. This is how Yale has the service configured.
Once we create our own documentation, we should share it back to the rubycas and net-ldap projects as an example (maybe as a pull request to edit the README with a link to our gist?).
Resources
Here's the gem's page (not particularly helpful)
https://github.com/ruby-ldap/ruby-net-ldap
Here's a relevant short script that uses LDAP:
https://github.com/YaleSTC/csv-to-ldap/blob/master/netid_to_email.rb
Bay Gross (HackYale, former STC employee) did a great job and made this gist two years ago. We could fork this to YaleSTC's organization and update/organize/format/document it more, or we can make our own and just include a line in the gist's readme referencing his good example.
https://gist.github.com/baygross/2054898
Here's some relevant code in Reservations (I probably didn't link to 100% of what's needed, but this should be a good starting point)
reservations/Gemfile
Line 16 in 6265ef1
reservations/app/models/user.rb
Line 1 in 6265ef1
reservations/app/models/user.rb
Line 100 in 6265ef1
reservations/app/controllers/users_controller.rb
Line 48 in 6265ef1
The text was updated successfully, but these errors were encountered: