ChunxiaZhang / Toaster

0 stars 0 forks source link

Unable to authenticate using the compiled app. #11

Closed froyomuffin closed 7 years ago

froyomuffin commented 9 years ago

Compile and get the app to work. Either on actual device or in android emulator. Currently, there's an authentication issue.

froyomuffin commented 9 years ago

Just needed to register the fork to OAuth at https://github.com/settings/applications/new

Then, PocketHub can be made aware of our App's clientID and client secret via: GITHUB_CLIENT=your_application_client_id GITHUB_SECRET=your_application_client_secret GITHUB_CALLBACK=your_callback_url

The callback_url should match the same callback scheme set when registering the app on github

Full details at: https://developer.github.com/v3/oauth/

froyomuffin commented 9 years ago

Re-opened. I think I'm using the callback wrong. It's just opening github mobile in the app.

ChunxiaZhang commented 9 years ago

I got the same problem!!

On Sep 29, 2015, at 10:29 PM, froyomuffin notifications@github.com wrote:

Re-opened. I think I'm using the callback wrong. It's just opening github mobile in the app.

— Reply to this email directly or view it on GitHub https://github.com/ChunxiaZhang/Toaster/issues/11#issuecomment-144262481.

froyomuffin commented 9 years ago

Got it. So the callback url must be set (on both github and in github.properties) to pockethub://

That's it. This value is read by app/gradle.build and will automatically update the @string scheme resource in AndroidManifest.xml during build.

froyomuffin commented 9 years ago

Reopen for tracking