Announcement Announcement Module
No announcement yet.
Spring Security with Weblogic Roles Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security with Weblogic Roles

    Hi guys,

    I working on a proof-of-concept for my company, and I'm stuck in the security level. Currently, our clients uses Weblogic 10.2 as container, and realm-based roles for app authentication.

    I was tasked to create a Grails app that uses SSO to provide a seamless experience to the end user. The idea is that the user would log in in a JEE application, the same way it's today, and then, some actions in the app would be performed in the Grails app.

    The auth schema is JEE standard, with roles in Weblogic for access. I've checked the spring-security-plugin for Grails, but i depends on the User-Role in DB method. How can I configure it to post the login info to the server and use the JEE mechanism?

    Thanks and regards,

  • #2

    I got some progress on this. Now, if I enter an invalid login/password, I'm redirected to the denied page, as per the web.xml configuration. Which probably means that the server is trying to authenticate the username. However, if I enter a valid username/password, it seems the server is not sending the auth credentials back, because if I try to enter in a secured page, I'm redirected again to the login form.

    I see that a cookie is written in the session for my app, but I'm not "logged in" per se. I'm starting to think there's some security filter misconfigured.

    My web.xml security:

     	        <display-name>test role</display-name>
    And my login.gsp:
    <form action='j_security_check' method='POST' id='loginForm' class='cssform' autocomplete='off'>
    				<label for='username'><g:message code="springSecurity.login.username.label"/>:</label>
    				<input type='text' class='text_' name='j_username' id='username'/>
    				<label for='password'><g:message code="springSecurity.login.password.label"/>:</label>
    				<input type='password' class='text_' name='j_password' id='password'/>
    			<p id="remember_me_holder">
    				<input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if>/>
    				<label for='remember_me'><g:message code=""/></label>
    				<input type='submit' id="submit" value='${message(code: "springSecurity.login.button")}'/>
    I have found this info (; however, the grails spring-security-core plugin does not contain the AuthenticationProcessingFilter class.