Skip to content
Permalink
Browse files
update for security provider API change
  • Loading branch information
ahgittin committed Jan 29, 2019
1 parent 6ec47ea commit 83db88331c9cae76ee5bb128890244f6eeed6416
Showing 1 changed file with 4 additions and 1 deletion.
@@ -18,6 +18,9 @@
*/
package org.apache.brooklyn.security;

import java.util.function.Supplier;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.brooklyn.rest.security.provider.AbstractSecurityProvider;
@@ -28,7 +31,7 @@ public class CustomSecurityProvider extends AbstractSecurityProvider implements
static final String USER = "custom";

@Override
public boolean authenticate(HttpSession session, String user, String password) {
public boolean authenticate(HttpServletRequest request, Supplier<HttpSession> sessionSupplierOnSuccess, String user, String pass) throws SecurityProviderDeniedAuthentication {
return USER.equals(user);
}

0 comments on commit 83db883

Please sign in to comment.