File tree Expand file tree Collapse file tree
msal4j-sdk/src/integrationtest/java/com.microsoft.aad.msal4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,38 +46,6 @@ void DeviceCodeFlowADTest() throws Exception {
4646 IntegrationTestHelper .assertAccessAndIdTokensNotNull (result );
4747 }
4848
49- //TODO: This test is failing intermittently due to inconsistent login page layouts and is commented out until fixed.
50- //@Test()
51- // void DeviceCodeFlowMSATest() throws Exception {
52- //
53- // LabResponse labResponse = LabConfigHelper.getMSAUser();
54- // UserConfig user = labResponse.getUser();
55- // AppConfig app = labResponse.getApp();
56- //
57- // PublicClientApplication pca = IntegrationTestHelper.createPublicApp(app.getAppId(), TestConstants.CONSUMERS_AUTHORITY);
58- //
59- // Consumer<DeviceCode> deviceCodeConsumer = (DeviceCode deviceCode) -> {
60- // runAutomatedDeviceCodeFlow(deviceCode, user);
61- // };
62- //
63- // IAuthenticationResult result = pca.acquireToken(DeviceCodeFlowParameters
64- // .builder(Collections.singleton(""),
65- // deviceCodeConsumer)
66- // .build())
67- // .get();
68- //
69- // assertNotNull(result);
70- // assertNotNull(result.accessToken());
71- //
72- // result = pca.acquireTokenSilently(SilentParameters.
73- // builder(Collections.singleton(""), result.account()).
74- // build())
75- // .get();
76- //
77- // assertNotNull(result);
78- // assertNotNull(result.accessToken());
79- // }
80-
8149 private void runAutomatedDeviceCodeFlow (DeviceCode deviceCode , UserConfig user ) {
8250 SeleniumExtensions .performDeviceCodeLogin (
8351 seleniumDriver ,
You can’t perform that action at this time.
0 commit comments