How to access the component, after configuring its security.

View: New views
4 Messages — Rating Filter:   Alert me  

How to access the component, after configuring its security.

by Gerwin Postma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My configuration is the following.

<.............................
<mule-ss:security-manager>
        <mule-ss:delegate-security-provider name="memory-provider" delegate-ref="authenticationManager" />
    </mule-ss:security-manager>

..................................>
   <.....................................
    <spring:beans>
        <ss:authentication-manager alias="authenticationManager" />

        <ss:authentication-provider>
            <ss:user-service id="userService">
                <ss:user name="ross" password="ross" authorities="ROLE_ADMIN" />
                <ss:user name="anon" password="anon" authorities="ROLE_ANON" />
            </ss:user-service>
        </ss:authentication-provider>

        <spring:import resource="classpath:SpringHibernaterContextConfig.xml"/>
    </spring:beans>
.............................>
<.....................
  <http:inbound-endpoint address="http://localhost:8888/services/identityIdentify" synchronous="true">    
            <mule-ss:http-security-filter realm="mule"/>
            </http:inbound-endpoint>
...................>


 If no the scecurity configuration, my service component is accessible.  but now it is not accessible. I am confused how to access the component.
================================================================================
my test page is the admin.jsp

<form method="POST" action="<%=request.getContextPath()%>/services/identityIdentify">
<tr>
<td>username</td><td><input type="text" value="ross" name="name"></td>
</tr>
<tr>
<td>password</td><td><input type="password" value="ross" name="password"></td>
</tr>
<tr><input type="submit" value="提交"></tr>
</form>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to access the component, after configuring its security.

by Gerwin Postma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The http-security-filter used basic authentication. So it expects an HTTP header like:

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==


Your form does not to this, it just sends to variables name & password.


Referring to our previous discussion: what you are trying to do is not very common: calling mule directly from an html page.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to access the component, after configuring its security.

by Gerwin Postma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You think it is not very common to call mule directly from an html page.

Do you advise that I should call mule throught a sevelt rather than an html page?

:)

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to access the component, after configuring its security.

by Gerwin Postma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Factly,I am trying to find a best way which can pefectly manage  the uer's access right.

I have read the mule security 's example.  It just tell me how to make my url safe, not give me the way to manage the user's access right like spring security.

Maybe I read not clearly.  Can you give me some advice in terms of this.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email