- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25
Open
Description
Can you please advise me? @bumpmann @thyb @william26
This Is How You Do It With JavaScript.
OAuth.popup(provider, {
    state: oauthstate
}).done(handleOAuthAuthorization);function handleOAuthAuthorization(result){
    $.ajax({
        url: 'index.php',
        type: 'POST',
        dataType: 'json',
        data: {
            code: result.code
        }
    }).done(function(r){
        handleOAuthCallback(r);
    });
}What I'm Trying To Do With Android
OAuth o = new OAuth(this);
o.setOAuthdURL("https://andrew.easypparking.com:6284");
o.initialize("key");
JSONObject opts = new JSONObject();
JSONObject json = null;
try {
    json = getPostJSON("https://andrew.easypparking.com/apps/mobile/oauth/index.php?resource=genstate");
    opts.put("state", json.getString("oauthstate"));
} catch (JSONException e) {
    e.printStackTrace();
}
try {
    opts.put("oauthprovider", provider);
} catch (JSONException e) {
    e.printStackTrace();
}
o.popup(provider, opts, CurrentCallbackActivity.this);Metadata
Metadata
Assignees
Labels
No labels