Skip to content

Commit 6d907e5

Browse files
update comment about mystery includes to be more accurate
1 parent c230ed6 commit 6d907e5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

plugins/microsoft-graph-authz/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ dependencies {
7676

7777
testRuntimeOnly "net.minidev:json-smart:2.5.2"
7878
testRuntimeOnly "com.nimbusds:oauth2-oidc-sdk:11.22.2"
79+
testRuntimeOnly "com.nimbusds:content-type:2.3"
7980

8081
attributesSchema {
8182
attribute(patched)

plugins/microsoft-graph-authz/src/main/java/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
requires com.microsoft.graph;
2121
requires com.azure.identity;
2222
requires com.microsoft.graph.core;
23+
// FIXME both of these module includes are load bearing, because this project is cursed
24+
// we don't need either of these in the plugin, but without the Kotlin include, the plugin fails to compile; without the gson include,
25+
// we get a NoClassDefFoundError at runtime
2326
requires kotlin.stdlib;
2427
requires com.google.gson;
2528

plugins/microsoft-graph-authz/src/main/java/org/elasticsearch/xpack/security/authz/microsoft/MicrosoftGraphAuthzRealm.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ public MicrosoftGraphAuthzRealm(UserRoleMapper roleMapper, RealmConfig config) {
6464
);
6565
}
6666

67-
// FIXME both of these lines are load bearing, because this project is cursed
68-
new com.google.gson.JsonParser();
69-
kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(clientSecret, "clientSecret");
7067
// TODO license check
7168
}
7269

0 commit comments

Comments
 (0)