File tree Expand file tree Collapse file tree
src/test/java/com/sonar/scanner/api/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 <description >Integration tests</description >
1212
1313 <properties >
14- <jetty .version>9.4.24.v20191120 </jetty .version>
14+ <jetty .version>9.3.11.v20160721 </jetty .version>
1515 <logback .version>1.1.7</logback .version>
1616 <sonar .skip>true</sonar .skip>
1717 <skipTests >true</skipTests >
Original file line number Diff line number Diff line change 4040import org .eclipse .jetty .security .ConstraintSecurityHandler ;
4141import org .eclipse .jetty .security .HashLoginService ;
4242import org .eclipse .jetty .security .SecurityHandler ;
43- import org .eclipse .jetty .security .UserStore ;
4443import org .eclipse .jetty .server .Handler ;
4544import org .eclipse .jetty .server .HttpConfiguration ;
4645import org .eclipse .jetty .server .HttpConnectionFactory ;
@@ -124,9 +123,7 @@ private static ServletContextHandler proxyHandler(boolean needProxyAuth) {
124123 private static final SecurityHandler basicAuth (String username , String password , String realm ) {
125124
126125 HashLoginService l = new HashLoginService ();
127- UserStore userStore = new UserStore ();
128- userStore .addUser (username , Credential .getCredential (password ), new String [] {"user" });
129- l .setUserStore (userStore );
126+ l .putUser (username , Credential .getCredential (password ), new String [] {"user" });
130127 l .setName (realm );
131128
132129 Constraint constraint = new Constraint ();
You can’t perform that action at this time.
0 commit comments