Skip to content

Support for the /redirect path

In GALILEO currently, we support a /redirect path, e.g.,

https://www.galileo.usg.edu/redirect?inst=asc1&url=https://www.galileo.usg.edu
https://www.galileo.usg.edu/redirect?inst=mga1&url=http://search.ebscohost.com/login.aspx?authtype=ip&profile=ehost&defaultdb=f6h

What we do with that is:

  1. determine the openathens scope from the inst= parameter, e.g.,
    • asc1 => agnesscott.edu
    • mga1 => mga.edu
  2. create the openathens redirector prefix using that scope value, e.g.,
    • https://go.openathens.net/redirector/agnesscott.edu?url=
    • https://go.openathens.net/redirector/mga.edu?url=
  3. url-encode the url= parameter, e.g.,
    • https%3A%2F%2Fwww.galileo.usg.edu
    • http%3A%2F%2Fsearch.ebscohost.com%2Flogin.aspx%3Fauthtype%3Dip%26profile%3Dehost%26defaultdb%3Df6h
  4. combine the openathens prefix with the encoded url, e.g.,
    • https://go.openathens.net/redirector/agnesscott.edu?url=https%3A%2F%2Fwww.galileo.usg.edu
    • https://go.openathens.net/redirector/mga.edu?url=http%3A%2F%2Fsearch.ebscohost.com%2Flogin.aspx%3Fauthtype%3Dip%26profile%3Dehost%26defaultdb%3Df6h
  5. finally, redirect the user to the resulting prefixed url

Note, that we don't care if the url is a valid resource for openathens. We just let openathens present the error message in that case, e.g.,

https://www.galileo.usg.edu/redirect?inst=asc1&url=https://www.google.com