latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Problem with remote authorization

Home Forums Community Forum Problem with remote authorization

This topic contains 9 replies, has 4 voices. Last updated by  Jason (Lead Developer) 4 years, 1 month ago.

Topic Author Topic
Posted: Tuesday Nov 20th, 2012 at 9:55 pm #32185

I am having serious problems with remote authorization.

I am running apache 2.2.23, mysql 5.5, and php 5.4.8 on a windows 7 pc
php is running in CGI mode.

I can not get remote authorization to work at all, i can enter correct user and pass and it will prompt again for user and pass, till i get a 401.

I have added

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

to the .htaccess and still i get the same thing.

I have got to get this working so i can finish developing my application.

Please help me get this issue sorted.

Thank you.

  • This topic was modified 4 years, 1 month ago by  Eduan. Reason: Moved to pre-sale questions forum

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Monday Nov 26th, 2012 at 12:04 pm #32604

I plan on purchasing this plugin but i have to be able to get it to work before i decide to spend any cash on it.

Please help me get this sorted.

Posted: Monday Nov 26th, 2012 at 4:02 pm #32632
Raam Dev
Username: Raam
Staff Member

Hi Gene,

I’m not familiar with the Windows hosting platform, but what I would do to diagnose this issue is to enable the maximum level of logging in Apache, test the remote auth again, and then check to see what the logs say about the 401 error. There should be some more details about this error. If you can provide those here, we may be able to point you in the right direction.

Posted: Monday Nov 26th, 2012 at 4:54 pm #32643

127.0.0.1 – – [26/Nov/2012:13:46:20 -0600] “GET /?s2member_file_remote=yes&s2member_file_download=/test.zip HTTP/1.1” 401 43
127.0.0.1 – admin [26/Nov/2012:13:46:20 -0600] “GET /?s2member_file_remote=yes&s2member_file_download=/test.zip HTTP/1.1” 401 43
127.0.0.1 – admin [26/Nov/2012:13:46:23 -0600] “GET /?s2member_file_remote=yes&s2member_file_download=/test.zip HTTP/1.1” 401 43

the above is the access log.

I also have a linux web server setup and having same problem with it

I don’t have a lot of experience with setting up the servers, but everything else on both servers seems to work except the remote file download

Posted: Tuesday Nov 27th, 2012 at 6:20 am #32675

Gene, could you please use this script to check the server configuration and see it reports something wrong or missing? http://www.s2member.com/r/server-check-tool/

Posted: Tuesday Nov 27th, 2012 at 4:52 pm #32744

I ran the tool had 2 errors and 1 memory issue from 32meg to 64 meg.
Issue 1 was php extension openssl1
Issue 2 was php extension curl which was on but related to openssl1

Both errors were corrected and the memory error was corrected.

Tried again to do remote download and it failed.

below is the last scan with the tool.

No issues. Your server configuration looks great!

Posted: Wednesday Nov 28th, 2012 at 3:54 pm #32807
Raam Dev
Username: Raam
Staff Member

Hi Gene,

Can you please try changing /test.zip in your URL to just test.zip? Also, can you confirm that the test.zip exists in your wp-content/s2member-files/ directory?

Finally, please double-check the credentials that you’re using to authenticate.

Posted: Wednesday Nov 28th, 2012 at 5:04 pm #32829

I have tried the suggested changes to the name
I have confirmed the username and password
I have confirmed the file exist in the directory

None of the above have worked.

I can however go to

http://mysite.com/wp-content/plugins/s2member-files/test.zip

and download the file with out user name or password

I can also download the file if i am logged into wordpress.

But the issue remains if i am not logged in and try to use remote authorization it fails, even while using the admin account creds.

  • This reply was modified 4 years, 1 month ago by  Gene Shaffran.
Posted: Friday Nov 30th, 2012 at 12:07 am #32969

Gene, I imagine you watched this video, right? Video » s2Member® File Downloads (Remote Auth/Podcasting)

Maybe this article helps with your app integration too? Knowledge Base » Remote User Status (Custom API)

Here’s a post by Jason on remote authorization with some suggestions that may also help: http://www.s2member.com/forums/topic/http-remote-auth/#post-24703

I’ll forward this thread to Jason to comment on the problem you’re reporting. Could you please submit your site’s info in case he needs it to investigate the problem? s2Member® » Private Contact Form

Thanks!

Posted: Wednesday Dec 5th, 2012 at 4:50 am #33525
Staff Member

Thanks for the heads up on this thread.

Have you tried this yet?

For HTTP Authentication to work with IIS, the PHP.ini directive cgi.rfc2616_headers must be set to 0 (the default value).

See also: http://php.net/manual/en/features.http-auth.php

Viewing 9 replies - 1 through 9 (of 9 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.