You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by tb...@apache.org on 2019/01/31 11:23:55 UTC
[brooklyn-dist] branch master updated: update for security provider
API change
This is an automated email from the ASF dual-hosted git repository.
tbouron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-dist.git
The following commit(s) were added to refs/heads/master by this push:
new 83db883 update for security provider API change
new fe89aff Merge pull request #139 from ahgittin/fix-sessions
83db883 is described below
commit 83db88331c9cae76ee5bb128890244f6eeed6416
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Tue Jan 29 20:06:50 2019 +0000
update for security provider API change
---
.../java/org/apache/brooklyn/security/CustomSecurityProvider.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/karaf/itest/src/test/java/org/apache/brooklyn/security/CustomSecurityProvider.java b/karaf/itest/src/test/java/org/apache/brooklyn/security/CustomSecurityProvider.java
index 50195bf..b120cfe 100644
--- a/karaf/itest/src/test/java/org/apache/brooklyn/security/CustomSecurityProvider.java
+++ b/karaf/itest/src/test/java/org/apache/brooklyn/security/CustomSecurityProvider.java
@@ -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);
}