[Acegisecurity-developer] Authentication required but no role

2006-06-13 Thread Seth Stankowski
Within Acegi is there a way to protect a URL in a way that requires
authentication but doesn't require a specific role to access?  I have
an application which requires users to login and then access different
things depending on their role.  One section of the application,
Manage Account, I would like to be accessible to any authenticated
user so I don't have to manage a role for this specific section.  Is
this possible using Acegi?  I've tried different things with the
FilterSecurityInterceptor and role voter but can't see to get it.

Thanks,
Seth


___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Authentication required but no role

2006-06-13 Thread Ray Krueger
One option is to always grant users a role like ROLE_AUTHENTICATED
when they log in. Then you protect those areas with that
ROLE_AUTHENTICATED role. This role wouldn't exist in your user
maintenance screens and what not.

For instance, if you're using the DaoAuthenticationProvider and
JdbcDaoImpl; you would extend JdbcDaoImpl and override the
addCustomAuthorities method. In your method you always add the
ROLE_AUTHENTICATED role to the list.

Hope that helps.

On 6/12/06, Seth Stankowski <[EMAIL PROTECTED]> wrote:
> Within Acegi is there a way to protect a URL in a way that requires
> authentication but doesn't require a specific role to access?  I have
> an application which requires users to login and then access different
> things depending on their role.  One section of the application,
> Manage Account, I would like to be accessible to any authenticated
> user so I don't have to manage a role for this specific section.  Is
> this possible using Acegi?  I've tried different things with the
> FilterSecurityInterceptor and role voter but can't see to get it.
>
> Thanks,
> Seth
>
>
> ___
> Home: http://acegisecurity.org
> Acegisecurity-developer mailing list
> Acegisecurity-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>


___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Authentication required but no role

2006-06-13 Thread Scott Battaglia
Would something like this help?
http://www.acegisecurity.org/multiproject/acegi-security/apidocs/org/acegisecurity/vote/AuthenticatedVoter.html

-Scott

Ray Krueger wrote:

>One option is to always grant users a role like ROLE_AUTHENTICATED
>when they log in. Then you protect those areas with that
>ROLE_AUTHENTICATED role. This role wouldn't exist in your user
>maintenance screens and what not.
>
>For instance, if you're using the DaoAuthenticationProvider and
>JdbcDaoImpl; you would extend JdbcDaoImpl and override the
>addCustomAuthorities method. In your method you always add the
>ROLE_AUTHENTICATED role to the list.
>
>Hope that helps.
>
>On 6/12/06, Seth Stankowski <[EMAIL PROTECTED]> wrote:
>  
>
>>Within Acegi is there a way to protect a URL in a way that requires
>>authentication but doesn't require a specific role to access?  I have
>>an application which requires users to login and then access different
>>things depending on their role.  One section of the application,
>>Manage Account, I would like to be accessible to any authenticated
>>user so I don't have to manage a role for this specific section.  Is
>>this possible using Acegi?  I've tried different things with the
>>FilterSecurityInterceptor and role voter but can't see to get it.
>>
>>Thanks,
>>Seth
>>
>>
>>___
>>Home: http://acegisecurity.org
>>Acegisecurity-developer mailing list
>>Acegisecurity-developer@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>>
>>
>>
>
>
>___
>Home: http://acegisecurity.org
>Acegisecurity-developer mailing list
>Acegisecurity-developer@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>  
>


___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] Authentication required but no role

2006-06-13 Thread Ray Krueger
Good call Scott, I didn't even realize we had such a thing :)

On 6/13/06, Scott Battaglia <[EMAIL PROTECTED]> wrote:
> Would something like this help?
> http://www.acegisecurity.org/multiproject/acegi-security/apidocs/org/acegisecurity/vote/AuthenticatedVoter.html
>
> -Scott
>
> Ray Krueger wrote:
>
> >One option is to always grant users a role like ROLE_AUTHENTICATED
> >when they log in. Then you protect those areas with that
> >ROLE_AUTHENTICATED role. This role wouldn't exist in your user
> >maintenance screens and what not.
> >
> >For instance, if you're using the DaoAuthenticationProvider and
> >JdbcDaoImpl; you would extend JdbcDaoImpl and override the
> >addCustomAuthorities method. In your method you always add the
> >ROLE_AUTHENTICATED role to the list.
> >
> >Hope that helps.
> >
> >On 6/12/06, Seth Stankowski <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Within Acegi is there a way to protect a URL in a way that requires
> >>authentication but doesn't require a specific role to access?  I have
> >>an application which requires users to login and then access different
> >>things depending on their role.  One section of the application,
> >>Manage Account, I would like to be accessible to any authenticated
> >>user so I don't have to manage a role for this specific section.  Is
> >>this possible using Acegi?  I've tried different things with the
> >>FilterSecurityInterceptor and role voter but can't see to get it.
> >>
> >>Thanks,
> >>Seth
> >>
> >>
> >>___
> >>Home: http://acegisecurity.org
> >>Acegisecurity-developer mailing list
> >>Acegisecurity-developer@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> >>
> >>
> >>
> >
> >
> >___
> >Home: http://acegisecurity.org
> >Acegisecurity-developer mailing list
> >Acegisecurity-developer@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> >
> >
>
>
> ___
> Home: http://acegisecurity.org
> Acegisecurity-developer mailing list
> Acegisecurity-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>


___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer