Most probably already have a module local as this is so easy but here is a snippet people can work off of. The code below doesn't do much error checking or anything. You'd likely want to edit the below to make it more robust. The one below checks a SOPAC 2 table to make sure that they have a verified library card associated with the account. This prevents normal drupal accounts that don't have a library card from accessing resources. If you use some other module to add cards to profiles you would want to use that field instead. You may also want to use SSL though I haven't checked how well EZProxy handles it for external script auth. This presumes your using normal drupal accounts and not things like LDAP, etc.
For ezproxy you would use something like this for your auth:
Feel free to edit the below to make it better.Read more
Please feel free to attach snippets to this page. Add a description to the text.
Hyperlinked Call Numbers Using the Biblio Module
by John Bickar (cubbtech), Stanford University Libraries
To dynamically generate a hyperlinked call number relating to where the book would be shelved (e.g., https://www.stanford.edu/group/cubberley/node/329,