NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
How to set schedules direct username/password?

 
  • 0 Vote(s) - 0 Average
How to set schedules direct username/password?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2013-03-11, 10:49 AM
Hi,

I'm trying to set the username/password for schedules direct via the API.

I'm able to decode the username/password using

Code:
NShared.SchedulesDirectEPGSource.GetStoredUsername();
NShared.SchedulesDirectEPGSource.GetStoredPassword();

But not sure how I can set them, is there any API call? Or can you tell me the encryption method used (assuming its using some kinda of machine specific secret?)

Cheers
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,120
Threads: 957
Joined: May 2006
#2
2013-03-11, 12:05 PM
I would refuse to accept other apps could get my SD account information without my permission. I can trust web console to a point but the access is open source so it quickly exposes this method to others. If sub goes ahead with this I will make my objects known to SD for both NextPVR and Web Consoles approved use. Bottom line is this should be entered again (how hard is that) and stored securely be web console.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#3
2013-03-11, 04:04 PM
I'd have to agree with Martin on this one. I was careful enough with user's data to encrypt these details in the config files, but I hadn't really anticipated plugins calling my own internal functions for decrypting them.

If you need this information, you'll really need to ask the user for it. You can call SchedulesDirectEPGSource.UpdateCache(username, password) to store it after they've entered it, and the system will then be able to use it when it updates the EPG. I'd suggest you don't store copies of this info yourself, other than maybe the username.

I've removed these GetStoredUsername/GetStoredPassword calls for the next release. (note to self...was I wrong to choose to not obfuscate the internals when I moved to nextpvr...)
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2013-03-11, 07:00 PM
I don't really care about getting the actual password, I would like to still get the username. There is no serious security issue with allowing an app to get the username.

I want a username/password box on the page. The username will be plain text, the password will be a password field.

I want an API call to update the schedules direct username/password if they have changed.

I'm using NextPVR api calls to retrieve the schedules direct data, and not calling SD directly, so that is why I dont actually need the password, just need to be able to set the password.

So can you please keep the ability to get the username of schedules direct and also add the ability to set the username/password which nextpvr would then encrypt and store?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2013-03-11, 07:06 PM
mvallevand Wrote:I would refuse to accept other apps could get my SD account information without my permission. I can trust web console to a point but the access is open source so it quickly exposes this method to others. If sub goes ahead with this I will make my objects known to SD for both NextPVR and Web Consoles approved use. Bottom line is this should be entered again (how hard is that) and stored securely be web console.

Martin

I'm not storing these, I only allowing an interface to set these in NextPVR. the webconsole is a web interface to configure nextpvr, so most settings/configuration are saved back into NextPVR and not saved to the webconsole database.

The only settings saved to the web console database are
- users
- channels (so if using the Users feature each user has their own channels)
- channel groups (so if using the Users feature each user has their own channel groups)
- web console specific settings
- some misc tables for speed, like xmltv sources, it stores the filename and list of channels so when you edit the channels it doesnt have to reread the xml file again and again.

I dont save things like
- Devices
- EPG guide data
- Recording info
- Scheduled recordings
- schedules direct auth details.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2013-03-11, 07:11 PM
reven Wrote:I don't really care about getting the actual password, I would like to still get the username. There is no serious security issue with allowing an app to get the username.

I want a username/password box on the page. The username will be plain text, the password will be a password field.

I want an API call to update the schedules direct username/password if they have changed.

I'm using NextPVR api calls to retrieve the schedules direct data, and not calling SD directly, so that is why I dont actually need the password, just need to be able to set the password.

So can you please keep the ability to get the username of schedules direct and also add the ability to set the username/password which nextpvr would then encrypt and store?
Fair enough. I've reinstated SchedulesDirectEPGSource.GetStoredUsername() for the next build. You can use the SchedulesDirectEPGSource.UpdateCache() call to store the username/password.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2013-03-11, 07:26 PM
I see I can only update both the username and password at the same time.

But it is possible that someone changes the username field without changing the password field, in which case I won't know their password to update.

Can you make it so, if the passed in fields are blank, don't update that field. If they are empty then yes, update the fields to be empty.

eg
Code:
source.UpdateCache(null, "newpassword"); //only updates password
source.UpdateCache("new user", null); // only updates user
source.UpdateCache("", ""); // clears both username/password
?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2013-03-11, 07:44 PM
Ok. For the next release I've updated it to accept null, and treat that as 'unchanged'.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#9
2013-03-11, 08:35 PM
cool thanks sub Smile
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,120
Threads: 957
Joined: May 2006
#10
2013-03-11, 09:26 PM
Fair enough, I have no issue if the exposing the password isn't in question.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording direct to GPhotos API rgonzalez 0 1,523 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Schedules Direct and UpdateEPG.dat Anthony 1 1,736 2013-09-29, 12:08 AM
Last Post: sub
  Changing recording schedules on the fly. mvallevand 2 1,974 2011-09-06, 03:30 AM
Last Post: BrettB
  Access to Schedules inside standalone progs dero 1 1,437 2008-12-09, 12:03 PM
Last Post: dero
  Need help with Scedules Direct zehd 3 1,923 2007-08-27, 07:04 PM
Last Post: zehd
  Anyone heard of "Schedules Direct"? rowle1jt 10 4,191 2007-08-09, 09:44 PM
Last Post: rowle1jt
  Direct record dogstar 1 1,547 2005-08-26, 07:11 AM
Last Post: reboot

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode