typekpb / oradown

Enables download of the SSO protected files from the Oracle website.
MIT License
10 stars 3 forks source link

Oracle SSO form changed #1

Closed antoineco closed 6 years ago

antoineco commented 6 years ago

I've been using this script successfully until I recently noticed something changed on the Oracle side.

The new endpoint for the Oracle SSO service is https://login.oracle.com/oaam_server/loginAuth.do

This endpoint expects the following form data:

clientOffset:2
fk:8091956_aee7b4d7724a1632e1b18d3f8a0da8fb050141253cdf680960f2ab3bc2e66862
userid:myid
pass:mypass

The fk input comes from a hidden field:

<input type="hidden" id="fk" name="fk" value="8091956_aee7b4d7724a1632e1b18d3f8a0da8fb050141253cdf680960f2ab3bc2e66862">
typekpb commented 6 years ago

interesting, the CI (on travis) seems to be working just fine (https://travis-ci.org/typekpb/oradown). @antoineco anyway, any chance for creating PR for this?

antoineco commented 6 years ago

Yes because the test only asserts that a file is present, but actually all you get is a HTML document:

$ file jdk-8u141-linux-x64.tar.gz 
jdk-8u141-linux-x64.tar.gz: HTML document text, ASCII text, with very long lines, with no line terminators

I'll try to understand the new flow better and submit a PR 👍

typekpb commented 6 years ago

Excelent, thanks!

On Oct 26, 2017 16:13, "Antoine Cotten" notifications@github.com wrote:

Yes because the test only asserts that a file is present, but actually all you get is a HTML document:

$ file jdk-8u141-linux-x64.tar.gz jdk-8u141-linux-x64.tar.gz: HTML document text, ASCII text, with very long lines, with no line terminators

I'll try to understand the new flow better and submit a PR 👍

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/typekpb/oradown/issues/1#issuecomment-339679521, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegbNEZakapP9NQSRYqAMWbKvHWGOZ0ks5swJN7gaJpZM4QHmKW .