Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Issue 337013002: Third Party Authentication for Android Part III - Android OAuth2 (Closed)

Created:
6 years, 6 months ago by kelvinp
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Third Party Authentication for Android Part III - Android OAuth2 implicit flow This change implements the OAuth2 implicit flow to fetch a third party token from the user. 1. Introduces a class ThirdPartyTokenFetcher to pop up a third party login page located at |tokenurl| in the browser. 2. Introduces a class OAuthRedirectActivity, which has an intent filter declared in the manifest to intercept the redirect URI upon a successful login. 3. It then starts the chromoting activity, which uses the ThirdPartyTokenFetcher to extract the code and token from the URI and pass it into the native component using JNI. BUG=329109 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278062

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Address CL feedbacks #

Total comments: 33

Patch Set 3 : Address Lambros' feedbacks #

Patch Set 4 : Fix indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -8 lines) Patch
M remoting/android/java/AndroidManifest.xml.jinja2 View 1 2 1 chunk +14 lines, -1 line 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/Chromoting.java View 1 2 3 chunks +36 lines, -0 lines 0 comments Download
A remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java View 1 2 3 1 chunk +225 lines, -0 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java View 1 2 2 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
kelvinp
6 years, 6 months ago (2014-06-15 22:37:15 UTC) #1
rmsousa
lgtm The OAuth part lgtm once my comment is fixed. Please get a review from ...
6 years, 6 months ago (2014-06-16 22:13:15 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/337013002/diff/20001/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java File remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java (right): https://codereview.chromium.org/337013002/diff/20001/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java#newcode90 remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java:90: Intent intent = new Intent(Intent.ACTION_VIEW, uri); Does this pop ...
6 years, 6 months ago (2014-06-16 22:55:38 UTC) #3
kelvinp
PTAL https://codereview.chromium.org/337013002/diff/20001/remoting/android/java/AndroidManifest.xml.jinja2 File remoting/android/java/AndroidManifest.xml.jinja2 (right): https://codereview.chromium.org/337013002/diff/20001/remoting/android/java/AndroidManifest.xml.jinja2#newcode30 remoting/android/java/AndroidManifest.xml.jinja2:30: <data android:scheme="chromoting"/> On 2014/06/16 22:13:15, rmsousa wrote: > ...
6 years, 6 months ago (2014-06-17 00:02:57 UTC) #4
Lambros
https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/AndroidManifest.xml.jinja2 File remoting/android/java/AndroidManifest.xml.jinja2 (right): https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/AndroidManifest.xml.jinja2#newcode30 remoting/android/java/AndroidManifest.xml.jinja2:30: <data android:scheme="org.chromium.chromoting"/> I think it might be better to ...
6 years, 6 months ago (2014-06-17 02:01:40 UTC) #5
kelvinp
PTAL https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/AndroidManifest.xml.jinja2 File remoting/android/java/AndroidManifest.xml.jinja2 (right): https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/AndroidManifest.xml.jinja2#newcode30 remoting/android/java/AndroidManifest.xml.jinja2:30: <data android:scheme="org.chromium.chromoting"/> On 2014/06/17 02:01:39, Lambros wrote: > ...
6 years, 6 months ago (2014-06-17 03:33:40 UTC) #6
Lambros
lgtm, see comment about indentation https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java File remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java (right): https://codereview.chromium.org/337013002/diff/40001/remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java#newcode217 remoting/android/java/src/org/chromium/chromoting/ThirdPartyTokenFetcher.java:217: state, On 2014/06/17 03:33:40, ...
6 years, 6 months ago (2014-06-17 23:13:48 UTC) #7
kelvinp
The CQ bit was checked by kelvinp@chromium.org
6 years, 6 months ago (2014-06-18 00:38:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kelvinp@chromium.org/337013002/80001
6 years, 6 months ago (2014-06-18 00:40:24 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 14:45:26 UTC) #10
Message was sent while issue was closed.
Change committed as 278062

Powered by Google App Engine
This is Rietveld 408576698