This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/src/main/java/com/microsoft/graph/connect Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1010import android .content .Context ;
1111import android .util .Log ;
1212
13+ import com .microsoft .graph .connect .util .IManifestReader ;
14+ import com .microsoft .graph .connect .util .ManifestReader ;
1315import com .microsoft .identity .client .AuthenticationCallback ;
1416import com .microsoft .identity .client .AuthenticationResult ;
1517import com .microsoft .identity .client .IAccount ;
@@ -33,8 +35,12 @@ private AuthenticationManager() {
3335 public static synchronized AuthenticationManager getInstance () {
3436 if (INSTANCE == null ) {
3537 INSTANCE = new AuthenticationManager ();
38+
39+ IManifestReader metaDataReader = new ManifestReader ();
40+ String clientID = metaDataReader .getApplicationMetadataValueString ("com.microsoft.identity.client.ClientId" );
41+
3642 if (mPublicClientApplication == null ) {
37- mPublicClientApplication = new PublicClientApplication (Connect .getInstance ());
43+ mPublicClientApplication = new PublicClientApplication (Connect .getInstance (), clientID );
3844 }
3945 }
4046 return INSTANCE ;
You can’t perform that action at this time.
0 commit comments