@@ -68,8 +68,6 @@ public class AADLoginIT {
6868 } else {
6969 throw new IllegalStateException ("Can not recognize osName. osName = " + System .getProperty ("os.name" ));
7070 }
71- } catch (IllegalStateException e ) {
72- throw e ;
7371 } catch (InterruptedException | IOException e ) {
7472 throw new RuntimeException (e );
7573 } finally {
@@ -118,18 +116,6 @@ public void loginTest() {
118116
119117 private void runApp (Consumer <AppRunner > command ) {
120118 try (AppRunner app = new AppRunner (AADLoginIT .DumbApp .class )) {
121- // TODO here, just remind us to delete old configuration item after new aad implementation start to work.
122- app .property ("spring.security.oauth2.client.registration.azure.tenant-id" ,
123- System .getenv (AAD_TENANT_ID_1 ));
124- app .property ("spring.security.oauth2.client.registration.azure.client-id" ,
125- System .getenv (AAD_MULTI_TENANT_CLIENT_ID ));
126- app .property ("spring.security.oauth2.client.registration.azure.client-secret" ,
127- System .getenv (AAD_MULTI_TENANT_CLIENT_SECRET ));
128- app .property ("azure.activedirectory.environment" , "global-v2-graph" );
129- app .property ("azure.activedirectory.user-group.key" , "@odata.type" );
130- app .property ("azure.activedirectory.user-group.value" , "#microsoft.graph.group" );
131- app .property ("azure.activedirectory.user-group.object-id-key" , "id" );
132-
133119 app .property ("azure.activedirectory.tenant-id" , System .getenv (AAD_TENANT_ID_1 ));
134120 app .property ("azure.activedirectory.client-id" , System .getenv (AAD_MULTI_TENANT_CLIENT_ID ));
135121 app .property ("azure.activedirectory.client-secret" , System .getenv (AAD_MULTI_TENANT_CLIENT_SECRET ));
0 commit comments