Skip to content

Commit f4a2d76

Browse files
committed
This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs
Resolves elastic#53161
1 parent 8bacf63 commit f4a2d76

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

x-pack/qa/oidc-op-tests/src/test/java/org/elasticsearch/xpack/security/authc/oidc/OpenIdConnectAuthIT.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ private Tuple<String, String> completeAuthentication(String redirectUri, String
420420
logger.info(" OpenIDConnect authentication response {}", responseBody);
421421
assertNotNull(responseBody.get("access_token"));
422422
assertNotNull(responseBody.get("refresh_token"));
423-
assertNotNull(responseBody.get("realm"));
424423
assertNotNull(responseBody.get("authentication"));
425424
assertEquals("alice", ((Map)responseBody.get("authentication")).get("username"));
426425
return Tuple.tuple(responseBody.get("access_token").toString(), responseBody.get("refresh_token").toString());
@@ -518,13 +517,11 @@ class PrepareAuthResponse {
518517
private URI authUri;
519518
private String state;
520519
private String nonce;
521-
private String realm;
522520

523-
PrepareAuthResponse(URI authUri, String state, String nonce, String realm) {
521+
PrepareAuthResponse(URI authUri, String state, String nonce, @Nullable String realm) {
524522
this.authUri = authUri;
525523
this.state = state;
526524
this.nonce = nonce;
527-
this.realm = realm;
528525
}
529526

530527
URI getAuthUri() {
@@ -539,7 +536,5 @@ String getNonce() {
539536
return nonce;
540537
}
541538

542-
String getRealm() { return realm; }
543-
544539
}
545540
}

0 commit comments

Comments
 (0)