File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
java/com/firebase/ui/auth Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 34
34
public class AuthFlowFactory {
35
35
/**
36
36
* Creates the intent that starts the auth flow
37
+ *
38
+ * IDP Provider instructions:
39
+ * Enabling Google Sign In: If you're using Google Services Gradle Plugin, there are no additional
40
+ * steps needed. If not, please override the R.string.default_web_client_id
41
+ * to provider your google oauth web client id.
42
+ * Enabling Facebook Sign In: Please override the R.string.facebook_application_id to provide the
43
+ * App Id from Facebook Developer Dashboard
44
+ *
37
45
* @param context activity context
38
46
* @param firebaseApp the FirebaseApp that's to used for the authentication flow
39
47
* @param termsOfServiceUrl the URL to the Term of Service page to be present to the user
@@ -70,7 +78,7 @@ public static Intent createIntent(
70
78
context .getString (R .string .facebook_application_id )));
71
79
} else if (provider .equalsIgnoreCase ("google" )) {
72
80
providerParcels .add (
73
- GoogleProvider .createParcel (firebaseApp . getOptions (). getApplicationId ( )));
81
+ GoogleProvider .createParcel (context . getString ( R . string . default_web_client_id )));
74
82
}
75
83
}
76
84
return CredentialsInitActivity .createIntent (
Original file line number Diff line number Diff line change 62
62
<string name =" progress_dialog_signing_in" >Signing in…</string >
63
63
<string name =" progress_dialog_signing_up" >Signing up…</string >
64
64
<string name =" facebook_application_id" >FACEBOOK-APPID</string >
65
+ <string name =" default_web_client_id" >GOOGLE-WEBCLIENT-ID</string >
65
66
</resources >
You can’t perform that action at this time.
0 commit comments