Smugmug XBMC Addon - help with SSL connection
Nordic
Registered Users Posts: 237 Major grins
Hi,
I'm working on a Smugmug addon for XBMC.
I got everything working besides the oauth login. I want to let the user enter his mail and password in XBMC and send it to smugmug to authorize my application.
I try to call the method rpc.user.login on https://secure.smugmug.com/services/api/json/1.4.0/
with post data like this:
Email=myemail%40aaa.com&Password=myPwd&KeepLoggedIn=0&method=rpc.user.login
I would expect a result like this:
{"stat":"ok", "method":"rps.user.login","Homepage":"watherver.com","Domain":"","SessionID":"foo","Key":"bar"}
But instead I get the following error message:
{"stat":"fail","method":"rpc.user.login","code":2,"message":"SSL required"}
I don't understand the error message. If it is an SSL handshake error, why do I get a message from the smugmug API? In that case I would expect a SSL Handshake Exception or something like that.
I imported the smugmug certificate and the Comodo root certificate but it didn't change anything.
I'm new to Python programming, can anyone help?
Regards,
Andreas
I'm working on a Smugmug addon for XBMC.
I got everything working besides the oauth login. I want to let the user enter his mail and password in XBMC and send it to smugmug to authorize my application.
I try to call the method rpc.user.login on https://secure.smugmug.com/services/api/json/1.4.0/
with post data like this:
Email=myemail%40aaa.com&Password=myPwd&KeepLoggedIn=0&method=rpc.user.login
I would expect a result like this:
{"stat":"ok", "method":"rps.user.login","Homepage":"watherver.com","Domain":"","SessionID":"foo","Key":"bar"}
But instead I get the following error message:
{"stat":"fail","method":"rpc.user.login","code":2,"message":"SSL required"}
I don't understand the error message. If it is an SSL handshake error, why do I get a message from the smugmug API? In that case I would expect a SSL Handshake Exception or something like that.
I imported the smugmug certificate and the Comodo root certificate but it didn't change anything.
I'm new to Python programming, can anyone help?
Regards,
Andreas
0
Comments
I'll build it myself if nothing out there but thought I would check.
Thanks
Scott