Oauth2 oauth2 = new Oauth2(SALESFORCE_URL_AUTHORIZE, CONSUMER_KEY, "https://login.salesforce.com/services/oauth2/success", "refresh_token");
oauth2.showAuthentication(connectionListener);
[/code]
Then I tried with WebBrowser class
[code]
final WebBrowser wb = new WebBrowser();
String URL = SALESFORCE_URL_AUTHORIZE;
String params = "?response_type=token&client_id="+CONSUMER_KEY+"&display=touch&scope=refresh_token&redirect_uri="+RETURN_URI;
URL = URL + params;
Log.p(URL);
wb.setURL(URL);
[/code]
In both cases, I've this messages at console:
Attribute 'Http-equiv' is not supported for tag 'meta'.
Attribute 'Content' is not supported for tag 'meta'.
The tag 'script' is not supported in XHTML-MP 1.0
XML document contains multiple root elements, only the first root (html) will be used. Excessive roots: Text ( )
no BODY tag was found in page
It's strang, because the response is an empty HTML.
What I'm doing wrong?
Thanks!
Hello guys,I'm facing difficulties with OAuth 2.0 and WebBrowser.I've tried use OAuth2 class without success
Oauth2 oauth2 = new Oauth2(SALESFORCE_URL_AUTHORIZE, CONSUMER_KEY, "https://login.salesforce.com/services/oauth2/success", "refresh_token");
oauth2.showAuthentication(connectionListener);
Then I tried with WebBrowser class
final WebBrowser wb = new WebBrowser();
String URL = SALESFORCE_URL_AUTHORIZE;
String params = "?response_type=token&client_id="+CONSUMER_KEY+"&display=touch&scope=refresh_token&redirect_uri="+RETURN_URI;
URL = URL + params;
Log.p(URL);
wb.setURL(URL)
Attribute 'Http-equiv' is not supported for tag 'meta'.
Attribute 'Content' is not supported for tag 'meta'.
The tag 'script' is not supported in XHTML-MP 1.0
XML document contains multiple root elements, only the first root (html) will be used. Excessive roots: Text ( )
no BODY tag was found in page
In both cases, I've this messages at console:
It's strange, because the response is an empty HTML.