stevenyvr987 / overdrive-evergreen-opac

Automatically exported from code.google.com/p/overdrive-evergreen-opac
0 stars 0 forks source link

Log into Overdrive via username #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Logging into Overdrive will forward-proxy the login request to the 
authentication service at Library To Go, but it accepts barcodes only, 
apparently. If the user types in a username, the user will be able to log into 
Evergreen but not into Overdrive.

If a username is submitted, we will need to log into Evergreen, look up the 
barcode from patron account information, and then log into Overdrive. However, 
the current, natural process is to log into Overdrive first at client-side and 
then log into Evergreen at server-side.

Original issue reported on code.google.com by steven3...@gmail.com on 10 Jun 2014 at 8:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by steven3...@gmail.com on 11 Jun 2014 at 9:01

GoogleCodeExporter commented 9 years ago
By doing a dramatic refactoring of the login sequence, we can now log into OD 
using either barcode or username. We now log into OD after logging into EG on 
the myopac/main page, instead of doing the reverse sequence on the login page. 
By logging into EG first, it gives us a chance to get the myopac/prefs page so 
that we can scrape the barcode value and use it for OD login.

To simplify the code, we scrape the barcode even if it was used to log into EG. 
More refactoring is needed to tidy up the code.

Original comment by steven3...@gmail.com on 16 Jun 2014 at 10:55