|
54 | 54 | import com.microsoft.identity.common.java.ui.BrowserDescriptor; |
55 | 55 | import com.microsoft.identity.common.java.util.RequestHeaderSerializationUtil; |
56 | 56 | import com.microsoft.identity.common.java.util.StringUtil; |
| 57 | +import com.microsoft.identity.labapi.utilities.constants.LabConstants; |
57 | 58 |
|
58 | 59 | import org.junit.Test; |
59 | 60 | import org.junit.runner.RunWith; |
|
68 | 69 | @RunWith(RobolectricTestRunner.class) |
69 | 70 | public class MsalBrokerRequestAdapterTests { |
70 | 71 |
|
71 | | - final String CLIENT_ID = "c6bb302a-1e38-408e-9754-87c18fe81c80"; |
72 | | - |
73 | 72 | @Test |
74 | 73 | public void test_getRequestBundleForSsoToken() { |
75 | 74 | final String anAccountName = "anAccountName"; |
@@ -121,7 +120,7 @@ public void test_getRequestBundleForAcquireTokenInteractive() { |
121 | 120 | final InteractiveTokenCommandParameters params = InteractiveTokenCommandParameters.builder() |
122 | 121 | .platformComponents(components) |
123 | 122 | .correlationId(CORRELATION_ID) |
124 | | - .clientId(CLIENT_ID) |
| 123 | + .clientId(LabConstants.DEFAULT_ID4SLAB2_CLIENT_ID) |
125 | 124 | .applicationName(CALLER_PACKAGE_NAME) |
126 | 125 | .applicationVersion(VERSION) |
127 | 126 | .redirectUri(REDIRECT_URI) |
@@ -156,7 +155,7 @@ public void test_getRequestBundleForAcquireTokenInteractive_forAccountTransfer() |
156 | 155 | final InteractiveTokenCommandParameters params = InteractiveTokenCommandParameters.builder() |
157 | 156 | .platformComponents(components) |
158 | 157 | .correlationId(CORRELATION_ID) |
159 | | - .clientId(CLIENT_ID) |
| 158 | + .clientId(LabConstants.DEFAULT_ID4SLAB2_CLIENT_ID) |
160 | 159 | .applicationName(CALLER_PACKAGE_NAME) |
161 | 160 | .applicationVersion(VERSION) |
162 | 161 | .redirectUri(REDIRECT_URI) |
@@ -195,7 +194,7 @@ public void test_BrokerRequestFromAcquireTokenParameters_SignInWithGoogleParamet |
195 | 194 | final AndroidInteractiveTokenCommandParameters params = AndroidInteractiveTokenCommandParameters.builder() |
196 | 195 | .platformComponents(components) |
197 | 196 | .correlationId("987d8962-3f4d-4054-a852-ac0c4b6a602e") |
198 | | - .clientId(CLIENT_ID) |
| 197 | + .clientId(LabConstants.DEFAULT_ID4SLAB2_CLIENT_ID) |
199 | 198 | .redirectUri("msauth://com.microsoft.identity.client.sample.local/1wIqXSqBj7w%2Bh11ZifsnqwgyKrY%3D") |
200 | 199 | .applicationName("com.microsoft.identity.client.sample.local") |
201 | 200 | .applicationVersion("1.0.0") |
@@ -297,7 +296,7 @@ private void test_BrokerRequestFromAcquireTokenParametersInternal(final boolean |
297 | 296 | final InteractiveTokenCommandParameters params = InteractiveTokenCommandParameters.builder() |
298 | 297 | .platformComponents(components) |
299 | 298 | .correlationId("987d8962-3f4d-4054-a852-ac0c4b6a602e") |
300 | | - .clientId(CLIENT_ID) |
| 299 | + .clientId(LabConstants.DEFAULT_ID4SLAB2_CLIENT_ID) |
301 | 300 | .redirectUri("msauth://com.microsoft.identity.client.sample.local/1wIqXSqBj7w%2Bh11ZifsnqwgyKrY%3D") |
302 | 301 | .applicationName("com.microsoft.identity.client.sample.local") |
303 | 302 | .applicationVersion("1.0.0") |
|
0 commit comments