Jasonette / JASONETTE-Android

📡 Native App over HTTP, on Android
https://www.jasonette.com
Other
1.61k stars 270 forks source link

$oauth action #15

Open gliechtenstein opened 7 years ago

gliechtenstein commented 7 years ago

There's an undocumented $oauth action on iOS. https://github.com/Jasonette/JASONETTE-iOS/blob/develop/app/Jasonette/JasonOauthAction.m

The reason it's undocumented was because I wasn't sure how long it would take to build the Android version so wanted to get rid of complexity back when i was about to release the iOS version as open source.

The decision was to exclude oauth from the documentation so it's not supported officially, until I release the initial version of Android.

But now that we have both iOS and Android out there, it would be great if we can implement $oauth on Android as well and also document this.

gliechtenstein commented 7 years ago

Below are some JASON OAuth example apps I wrote, which can be used as test cases for implementing Android as well. I can confirm that all these are functional since I tried and took the screenshots from my iPhone just now.

How to try out on iOS

Create an app from each API provider, get client_id and client_secret (when required) and fill it out in Settings.plist from Xcode, like this:

screen shot 2016-12-22 at 5 01 43 pm

Examples

OAuth2

ProductHunt

https://jasonbase.com/things/mjX/edit

img_1207


Wordpress

https://jasonbase.com/things/b1z/edit

img_1208


Slack

https://jasonbase.com/things/8Kn/edit

img_1210


Github

https://jasonbase.com/things/Jq5/edit

img_1211


OAuth1

Tumblr

https://jasonbase.com/things/y06/edit

img_1209