Access to wrt from webpage
From my wrt widget, I must visit an external website to logon to, grant access to their service and in return they display a verification code that my users then have to retype in my widget. My phone browser does not allow for displayed text to be copied an pasted into my widget. This makes it a tedious process that has to be repeated once a month.
I am looking for an easier method.
Scenarios:
1. instead of launching a browser using widget.openURL, display the website inside an iframe - this does not work, since the origin is different and the content is inaccessible for my widget
2. I can provide a static, not dynamic callback url to the service that they can redirect to after my user has granted access. But how would I create such a callback URL? If I inspect the this.location property of the widget, I can see that it differs per installation, but even if it weren't, could this be a solution?
Any thoughts?
Re: Access to wrt from webpage
Hi and welcome to forum!
Are you using OAuth 1.0 or some custom authentication protocol?
If it is OAuth you could use a proxy to do the authentication part, as Symbian WRT widgets don't have a URL that could be used as a callback.
This on is for Series 40 Web Apps, but should be easily modified to work with WRT as well
[url]http://www.developer.nokia.com/Community/Wiki/OAuth_1.0_Authorization_in_Series_40_Web_Apps[/url]
Br,
Ilkka
Re: Access to wrt from webpage
Thank you Ilkka,
It is oauth indeed that is used. I will have a look into it. I am not very happy with the fact that I would have to include my consumer secret in the widget, and my server does not run php but dotnet, but maybe these issues can be overcome.
Kind regards,
Nico