Re: embed login in stanzas by using FormVariable
Kira Shen <[email protected]>
| Newsgroups | gmane.education.ezproxy |
|---|---|
| Message-ID | <[email protected]> |
Hi Laszlo, I have tested the two stanzas you have suggested, the 2nd one is working ( and yes, I haven't included the "real" psw in my stanzas :)) The first one doesn't work, the login screen show up after logging into Ezproxy. Thanks again for your help, really appreciated. Regards, Kira Kira Shen Resources & Discovery Librarian Library | Building 16 University of Wollongong NSW 2522 Australia T +61 2 4221 5016 https://www.uow.edu.au/library | Facebook<https://www.facebook.com/UOWLibrary> | Twitter<https://twitter.com/UOW_Library> University of Wollongong CRICOS: 00102E NOTICE: This email is intended for the addressee name and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Please consider the environment before printing this email. From: Laszlo Gercsov <[email protected]> Sent: Monday, 28 October 2019 1:48 PM To: Kira Shen <[email protected]>; [email protected] Subject: Re: embed login in stanzas by using FormVariable Hi Kira. I have used "usr" and "psw" as the userid and password, so my testing did not actually log in, but I tried these two methods :- Assuming you use a link to this URL to start :- http://{your_ezproxy_url}/login/ELRlogin then you might try this stanza :- T Environmental Law Reporter U -Form=dymanic ELRlogin http://epla.org.au/environmental-law-reporter/elr-subscribers FormVariable __ac_name=usr FormVariable __ac_password=psw FormVariable came_from FormVariable form.submitted FormVariable js_enabled FormVariable cookies_enabled FormVariable login_name FormVariable pwd_empty FormVariable submit Alternatively, you would use a starting link like this :- http://{your_ezproxy_url}/login?url=http://epla.org.au/environmental-law-reporter/elr-subscribers with a stanza like this :- T Environmental Law Reporter U http://epla.org.au/environmental-law-reporter/elr-subscribers Find name="submit" value="Log in" Replace id="ezproxyid" name="submit" value="Log in" Find </body> Replace <script type="text/javascript">if(document.getElementById('__ac_name')){var s=document.getElementById("__ac_name");s.value='usr';var s=document.getElementById("__ac_password");s.value = 'psw';document.getElementById('ezproxyid').click();}</script></body> This appears to "work" except that it kept looping because the userid and password were wrong. Best, Laszlo. Laszlo Gercsov Senior Systems Analyst Library Systems Library | Level 4 16 Macquarie Drive Macquarie University, NSW 2109, Australia T: +61 2 9850 6533 | F: +61 2 9850 7568 M: + 61 402 175 101 | mq.edu.au/library<http://mq.edu.au/> [Image removed by sender. Macquarie University]<http://mq.edu.au/> CRICOS Provider Number 00002J. Think before you print. Please consider the environment before printing this email. This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of Macquarie University ________________________________ From: EZproxy List <[email protected]> on behalf of Kira Shen <[email protected]> Sent: Friday, 25 October 2019 11:52 AM To: [email protected] <[email protected]> Subject: [EZPROXY-L] embed login in stanzas by using FormVariable Hi All, We subscribe to a journal that can only be accessed by logging in with an username and password. I tried to embed the login information into an ezproxy stanzas by using FormVariable. The stanzas firstly seems works. I can see the platform website showing our institutional name and logout button after I logging in via the ezproxy (see attached screenshot 1). This screen is the same screen I will get when I login directly via the journal platform, has this URL - http://epla.org.au/environmental-law-reporter/elr-subscribers<https://protect-au.mimecast.com/s/K7ZxCxngGkf9V4llu8hlc1?domain=epla.org.au> . However, when I continue clicking on "Read More" and try to open the full text of the issue, the platform directs me back to a login screen (see screenshot 2) with URL - http://epla.org.au/acl_users/credentials_cookie_auth/require_login?came_from=http://epla.org.au/environmental-law-reporter/elr-subscribers/2019/document_view<https://protect-au.mimecast.com/s/SNxgCyoj8Pu0wz11TMKGNI?domain=epla.org.au>. I have tried to change the url in stanzas, but still have the same issue. Somehow the embedded username and password couldn't be carried over from one page to another page. Is there anything I could add or change to the stanzas, to solve the issue? I will be really appreciate to your help or any suggestion on getting the login work with stanzas for this journal. Here is the stanzas I am using: T Environmental Law Reporter U -Form=post ELRlogin http://epla.org.au/environmental-law-reporter/elr-subscribers<https://protect-au.mimecast.com/s/K7ZxCxngGkf9V4llu8hlc1?domain=epla.org.au> FormVariable __ac_name=usr FormVariable __ac_password=psw FormVariable action=login DJ epla.org.au Regards, Kira Kira Shen Resources & Discovery Librarian Library | Building 16 University of Wollongong NSW 2522 Australia T +61 2 4221 5016 https://www.uow.edu.au/library<https://protect-au.mimecast.com/s/E8ccCzvkmpfxZp11tg3cFv?domain=uow.edu.au> | Facebook<https://protect-au.mimecast.com/s/J42RCANpnDCnX3QQHYe1a8?domain=facebook.com> | Twitter<https://protect-au.mimecast.com/s/Wg7-CBNqgBCMr9GGFWFSCb?domain=twitter.com> [pmc_strategic_marketing_and_communications$:MARKETING COMMUNICATIONS:SMC PROJECTS:LIVE:SMC UOW Rebrand 2016:1.0 Brand development:1.01 UOW Brand guidelines and assets:Logos:Primary:RGB:jpeg:UOW_Primary_RGB_Dark Blue.jpg] University of Wollongong CRICOS: 00102E NOTICE: This email is intended for the addressee name and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Please consider the environment before printing this email. ________________________________ To unsubscribe from the EZPROXY-L list, click the following link: http://listserv.oclclists.org/scripts/wa.exe?SUBED1=EZPROXY-L&A=1<https://protect-au.mimecast.com/s/0vDTCE8wlRCg2J77FBpzRX?domain=listserv.oclclists.org> ******************************************************************** If you wish to stop receiving messages from EZPROXY-L or otherwise amend your preferences, you can do so <a href="https://www.oclc.org/forms/internet-subscription.en.html">here</a>. Or email [email protected] including the relevant text below in the body of the email: • To unsubscribe: "unsubscribe EZPROXY-L" • To receive EZPROXY-L in digest form: "set EZPROXY-L digest" • To set your options to no mail: "set EZPROXY-L nomail" • To receive these messages in the future "set EZPROXY-L mail" To contact the list owners directly please send your message to [email protected]. If you unsubscribe from EZPROXY-L, you will no longer be able to participate in any of its features, including the public forum. To unsubscribe from all OCLC marketing email communications (including all OCLC listervs, OCLC Connect emails, OCLC event notifications, product/service/cooperative updates and newsletters), please email us at [email protected].
~WRD169.jpg
(image/jpeg, 823 B) - not displayed
image001.jpg
(image/jpeg, 3.6 KB) - not displayed