Skip to content
Permalink
Browse files
Merge pull request #139 from ahgittin/fix-sessions
update for security provider API change
  • Loading branch information
tbouron committed Jan 31, 2019
2 parents 90134c2 + 83db883 commit fe89aff634cfce93dec41fe82f712ef01d4a163f
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 fe89aff

Please sign in to comment.