Skip to content

HT Collection retrieval

Jaimie Murdock edited this page Sep 12, 2016 · 1 revision
  1. Go to the My Collections at HathiTrust.org. Note that this interface is different from the Workset builder that will be on the HTRC's [http://analytics.hathitrust.org] site.

  2. Click the yellow "Login" button on the My Collections page. This will redirect to CAS, which will then redirect to shibboleth (at least on IU's network): [https://cas.iu.edu/cas/login?cassvc=IU&casurl=https://idp.iu.edu/shibboleth-idp/Authn/RemoteUser?] On other networks, they may go to another login protocol, but the important thing is that they will go through to return a Shibboleth token back to HT.

  3. Shibboleth returns to hathitrust, which then does a POST request containing the body of the SAML response to [https://babel.hathitrust.org/Shibboleth.sso/SAML2/POST]

  4. The POST Response from [https://babel.hathitrust.org/Shibboleth.sso/SAML2/POST] tells us to set some cookies:

    Set-Cookie:_saml_idp=dXJuOm1hY2U6aW5jb21tb246aXUuZWR1; path=/; secure; domain=hathitrust.org; expires=Mon, 19 Sep 2016 19:05:21 GMT
    Set-Cookie:_shibstate_1473707095_3732=; path=/; secure; domain=hathitrust.org; expires=Mon, 01 Jan 2001 00:00:00 GMT
    Set-Cookie:NSC_mchspvq-iu=ffffffff8edd9ea245525d5f4f58455e445a4a42378b;expires=Mon, 12-Sep-2016 19:14:56 GMT;path=/;httponly
    Set-Cookie:_shibsession_64656661756c74687474703a2f2f7777772e686174686974727573742e6f72672f73686962626f6c6574682d7370=_6b54b3b6a2e6dbf212bcd169763f8de8; path=/; secure; domain=hathitrust.org
    
  5. Final request to collections page uses a Cookie containing the shibboleth session: [https://babel.hathitrust.org/shcgi/mb?colltype=my-collections]

    Cookie:__utma=164753312.983030104.1467037882.1472151988.1473223293.3; __utmz=164753312.1470956140.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _gat=1; _ga=GA1.2.983030104.1467037882; MDPsid=40fff6f29db6fd8bfce18f6e05742842; HT.prefs=%7B%22search%22%3A%7B%22ft%22%3Atrue%2C%22target%22%3A%22ls%22%7D%2C%22sdrinst%22%3A%22iu%22%7D; _shibsession_64656661756c74687474703a2f2f7777772e686174686974727573742e6f72672f73686962626f6c6574682d7370=_6b54b3b6a2e6dbf212bcd169763f8de8; _saml_idp=dXJuOm1hY2U6aW5jb21tb246aXUuZWR1; NSC_mchspvq-iu=ffffffff8edd9ea245525d5f4f58455e445a4a42378b
    
  6. When requesting a particular collection (e.g., [https://babel.hathitrust.org/shcgi/mb?a=listis;c=1181879677]), the cookies are also set with the session token.

    Cookie:__utma=164753312.983030104.1467037882.1472151988.1473223293.3; __utmz=164753312.1470956140.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _gat=1; HT.prefs=%7B%22search%22%3A%7B%22ft%22%3Atrue%2C%22target%22%3A%22ls%22%7D%2C%22sdrinst%22%3A%22iu%22%7D; _shibsession_64656661756c74687474703a2f2f7777772e686174686974727573742e6f72672f73686962626f6c6574682d7370=_6b54b3b6a2e6dbf212bcd169763f8de8; _saml_idp=dXJuOm1hY2U6aW5jb21tb246aXUuZWR1; HTstatus=%7B%22u%22%3A%22%22%2C%22authType%22%3A%22shibboleth%22%2C%22affiliation%22%3A%22Indiana%20University%22%2C%22displayName%22%3A%22jammurdo%22%2C%22institution%22%3A%22iu%22%7D; _ga=GA1.2.983030104.1467037882; MDPsid=40fff6f29db6fd8bfce18f6e05742842; NSC_mchspvq-iu=ffffffff8edd9ea245525d5f4f58455e445a4a42378b
    
Clone this wiki locally