File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ public AuthenticationService(
112112
113113 final String nodeName = Node .NODE_NAME_SETTING .get (settings );
114114 CustomTokenAuthenticator oauth2Authenticator = customTokenAuthenticators .stream ()
115- .filter (t -> t .name ().contains ("oauth2" ) || t instanceof CustomTokenAuthenticator . Noop )
115+ .filter (t -> t .name ().contains ("oauth2" ))
116116 .findAny ()
117- .orElseThrow ( );
117+ .orElse ( new CustomTokenAuthenticator . Noop () );
118118 CustomTokenAuthenticator apiKeyAuthenticator = customTokenAuthenticators .stream ()
119- .filter (t -> t .name ().contains ("api key" ) || t instanceof CustomTokenAuthenticator . Noop )
119+ .filter (t -> t .name ().contains ("api key" ))
120120 .findAny ()
121- .orElseThrow ( );
121+ .orElse ( new CustomTokenAuthenticator . Noop () );
122122 this .authenticatorChain = new AuthenticatorChain (
123123 settings ,
124124 operatorPrivilegesService ,
You can’t perform that action at this time.
0 commit comments