@@ -65,7 +65,7 @@ Gradle, add the dependency:
6565``` groovy
6666dependencies {
6767 // ...
68- implementation 'com.firebaseui:firebase-ui-auth:6.0.2 '
68+ implementation 'com.firebaseui:firebase-ui-auth:6.1.0 '
6969
7070 // Required only if Facebook login support is required
7171 // Find the latest Facebook SDK releases here: https://goo.gl/Ce5L94
@@ -97,8 +97,8 @@ for more information.
9797
9898### Identity provider configuration
9999
100- In order to use either Google, Facebook or Twitter accounts with your app, ensure that
101- these authentication methods are first configured in the Firebase console.
100+ In order to use either Google, Facebook, Twitter, Microsoft, Apple, or Yahoo accounts with your
101+ app, ensure that these authentication methods are first configured in the Firebase console.
102102
103103#### Google
104104
@@ -148,6 +148,34 @@ allprojects {
148148}
149149```
150150
151+ #### Microsoft, Apple, and Yahoo
152+
153+ No FirebaseUI configuration is required for these providers.
154+
155+ We support the use of scopes and custom parameters for these providers. For example:
156+
157+ ``` java
158+ List<String > scopes =
159+ new ArrayList<String > () {
160+ {
161+ add(" mail.read" );
162+ add(" calendars.read" );
163+ }
164+ };
165+
166+ Map<String , String > customParams = new HashMap<> ();
167+ customParams. put(" tenant" , " TENANT_ID" );
168+
169+ IdpConfig microsoftConfig = new IdpConfig .MicrosoftBuilder ()
170+ .setScopes(scopes)
171+ .setCustomParameters(customParams)
172+ .build();
173+ selectedProviders. add(microsoftConfig);
174+ ```
175+
176+ Note: unlike other sign-in methods, signing in with these providers involves the use of a
177+ [ Custom Chrome Tab] ( https://developer.chrome.com/multidevice/android/customtabs ) .
178+
151179#### GitHub
152180
153181We do not currently support Github as a sign-in method in FirebaseUI on Android. The current
@@ -236,6 +264,9 @@ startActivityForResult(
236264 new AuthUI .IdpConfig .GoogleBuilder (). build(),
237265 new AuthUI .IdpConfig .FacebookBuilder (). build(),
238266 new AuthUI .IdpConfig .TwitterBuilder (). build(),
267+ new AuthUI .IdpConfig .MicrosoftBuilder (). build(),
268+ new AuthUI .IdpConfig .YahooBuilder (). build(),
269+ new AuthUI .IdpConfig .AppleBuilder (). build(),
239270 new AuthUI .IdpConfig .EmailBuilder (). build(),
240271 new AuthUI .IdpConfig .PhoneBuilder (). build(),
241272 new AuthUI .IdpConfig .AnonymousBuilder (). build()))
0 commit comments