[ALOY-236] oauth builtin throwing application error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-05-13T18:52:59.000+0000 |
Affected Version/s | 2012 Sprint 19 |
Fix Version/s | n/a |
Components | Runtime |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | Unknown |
Created | 2012-08-29T14:39:52.000+0000 |
Updated | 2018-03-07T22:28:26.000+0000 |
Description
Reproduction:
Copy and paste sample code from Alloy/builtins/oauth.js (lines 39 - 64) into the index.js controller. Replace 'your-consumer-secret' and 'your-consumer-key' with the ones received when registering a Twitter app. Build and run for iPhone.
Results:
Application throws the following application error when loading: "Can't find variable: OAuthAdapter (unknown file)"
Comments:
I think it is missing the OAuthAdapter function from oauth_adapter.js. There is a modified copy of this function in social.js.
See http://code.google.com/p/oauth-adapter/wiki/UsageManualR4
Thanks. We will check it out.
The oauth code is no longer included as a built-in.
Closing as invalid. If this is incorrect, please reopen.