Hi
We are moving towards SOA and currently evaluating available webservices platforms. I am pleased to know that spring has something great to offer in this area but the problem is lack of reference...
Type: Posts; User: vishal; Keyword(s):
Hi
We are moving towards SOA and currently evaluating available webservices platforms. I am pleased to know that spring has something great to offer in this area but the problem is lack of reference...
I see no problems with the UserCredentialsDataSourceAdapter and perhaps the better way.
SecurityContext in SecurityContextHolder holds successful authentication object. Which means we can not possibly get credentials out of SecurityContextHolder before the successful authentication.
<!-- An access decision voter that reads ROLE_* configuration settings -->
<bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter">
<property name = "rolePrefix" value = "" />
...
The usecase is:
DBA users will provide username and password from the acegi login form. The datasource object should be constructed using login username and password. And the authentication will...
You may extend org.acegisecurity.providers.AuthenticationProvider and override
authenticate(Authentication authentication) method to provide custom authentication.
configure your custom...
could you please print your servlet.xml and the detailed logs.
Hi Ben
I am using acegi 0.9.0. No, not using remember me authentication. yeah browser caches the successful rendered page.
and how do we swap cglib with jdk proxies? might be a trivial question but sorry have no idea.
yeah that was my early thoughts on the subject untill I realised UserManager is being injected in to userController and userController is my Controller configured in SimpleUrlHandlerMapping :). Can't...
I think it's a caching problem but I'm not sure.
If I try to log in as a user who's not authorized to access certain url I get 403 as expected.
But if I login as a user who IS authroized to...
you may implement net.sf.acegisecurity.providers.AuthenticationProvider
and implement your own authenticate method which should return net.sf.acegisecurity.Authentication object on successful...
How do i switch cglib proxy to jdk proxy. I get the OutOfMemory on JBoss when I try redeploying the application few times.
<!-- class in ear configured in applicationcontext.xml file in war-->
<bean id="functionHandler"
class="com....component.FunctionHandlerSingleton"
factory-method="GetInstance" lazy-init="true">...
Hello All
I have two applications running on JBoss server packaged as ear and war. Some classes in war depends on couple of singletons, facade around EJBs, in ear. The problem is JBoss deploys...
Thanks Ben!
I prefixed my role names with ROLE_ while retrieving from the database for now. I will try Rolevoter.setPrefix once I get everything working :)
My application have following type of roles assigned to users
CLIENT_MANAGING_BUSINESS
BUSIENSS_SERVICES_SUPERVISOR
CLIENT_EQUIRY_SERVICES
configuring these in applicationcontext file gives ...
hope using authentication request to retrieve principal from, well try this
SecurityContextHolder.getContext().getAuthentication().getPrincipal()
Updating to standard.jar-1.1x and changing
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
to
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
solved the problem :)
Well I managed to get it working. I have hardcoded username/password values to startoff with but atleast I can see acegi working in my application
This is the code
package...
Hello Everyone
the following fragment from my acegilogin.jsp file is causing the following exception. Any clue?
<c:if test="${not empty param.login_error}">
SEVERE: Servlet.service() for...
I need to get user authenticated from a existing class UserManager#login(username,password) which returns me a Token object. I don't understand how the authentication process works. Login forms...