Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authkey periodicity in RSS #118

Open
ghost opened this issue Feb 8, 2018 · 9 comments
Open

authkey periodicity in RSS #118

ghost opened this issue Feb 8, 2018 · 9 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2018

I am using a gazelle site and am subscribed to an RSS feed that works, but after a few weeks, the authkey in the feed changes (server side) and my feed connection breaks. Is there some way to change the feed url format, like for instance, including the password instead of the authkey that will make the feed continue to work without breaking?

@ghost
Copy link
Author

ghost commented Mar 9, 2018

@ReiGelado this is more of a Gazelle user question than a site-admin question. I don't run the site, so I can't modify the codebase. However, I'd love to have my RSS feed URL last longer than the 1-2 weeks that it currently does before the authkey expires. I was trying to figure out if I could customize the feed URL format to include, perhaps my password, so that it would not expire. Other similar solutions would solve my problem. But, contacting the siteops and asking them to change the authkey maximum age is probably not going to work for me.

@ghost
Copy link
Author

ghost commented Mar 30, 2018

@ReiGelado so are you saying the authkey will change for all users site-wide if the siteops change the feed system somehow? I am currently noticing that the authkey expires exactly every 14 days. This seems a little too periodic in nature to me such that it would be the result of a siteop feed change. It seems more likely that something is cycling the authkeys.

@ligh7s
Copy link

ligh7s commented Mar 31, 2018

@ReiGelado You have no idea what you are talking about. Those are the private keys used to randomize user generated keys. Auth keys are generated for individual users and are cycled biweekly by the scheduler (8th and 22nd of each month, alongside invites).

This repository is abandoned, and issue trackers aren't designed for user support. Post in the forums of the tracker you speak of instead. For a solution: you can set up a script to run an API call and substitute your new authkey into the RSS feed whenever it fails, assuming you know how to.

@ghost
Copy link
Author

ghost commented Mar 31, 2018

@ligh7s could you be a little more specific on the steps involved in your proposed solution? I was thinking I might have to write some python or javascript somewhere to get this to work, but I don't know where I can get the new authkey from. Is there a REST web service endpoint in Gazelle that I can authenticate (login/pass) and get the new authkey back as a response in JSON?

@ligh7s
Copy link

ligh7s commented Mar 31, 2018

@Triune https://github.com/WhatCD/Gazelle/wiki/JSON-API-Documentation#index contains your authkey.

Post login credentials to https://site_na.me/login.php and create a session, then shoot a request to https://site_na.me/ajax.php?action=index. https://github.com/ligh7s/spread-red/blob/master/src/red.py#L55 is an example of one of my scripts logging in and storing the authkey.

@ghost
Copy link
Author

ghost commented Apr 1, 2018

Thanks for the info @ligh7s !! Definitely enough to get me going now!

@ligh7s
Copy link

ligh7s commented Apr 1, 2018

Also most Gazelle RSS feeds support using the passkey as authentication over the authkey; is that an option for the site you're using?

@ghost
Copy link
Author

ghost commented Apr 1, 2018

@ligh7s not sure about that one... here's what a RSS feed looks like on the site:

https://site/feeds.php?
feed=torrents_notify_1234_abc12345678&
user=9999&
auth=abcdef12345678&
passkey=fsdjklafhjk3hkl24299999999999999&
authkey=999999999999999999999999aaaaaaaa&
name=feed_name

Looks like my site requires both?

@jm134
Copy link

jm134 commented Apr 21, 2018

please tell me how to get unic code for "auth". it work fine for getting authkey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants