john017
Jan 9th, 2005, 05:56 PM
Hello Acegi Developers,
I have been looking at Acegi for integrating into my application and I have the following questions (Non acegi-specific but user security oriented) and am unsure how to implement them using acegi:
1. A user is associated with a set of authorities as I understand it which are populated in the Authentication object? But, at one time, the user is only on one role, for example, with a userid john017, i could be logged on as Admin authority at one time and Devloper authority at another time.
Since the AuthenticationProvider goes through the entire list of authorities and though john017 is in Developer role, he still has access as Admin?. Do I need to write my own AuthenticationProvider or does such a provider already exist or am I fundamentally wrong.
2. Since every method specifies the role for which it has access, how can this work in a deployed environment with Role definitions changing. For example, I could define the roles as ROLE_USER,ROLE_ADMIN but a specific role called ROLE_POWER_USERS can be later added after the application has been deployed.
Regards,
John Alvez
I have been looking at Acegi for integrating into my application and I have the following questions (Non acegi-specific but user security oriented) and am unsure how to implement them using acegi:
1. A user is associated with a set of authorities as I understand it which are populated in the Authentication object? But, at one time, the user is only on one role, for example, with a userid john017, i could be logged on as Admin authority at one time and Devloper authority at another time.
Since the AuthenticationProvider goes through the entire list of authorities and though john017 is in Developer role, he still has access as Admin?. Do I need to write my own AuthenticationProvider or does such a provider already exist or am I fundamentally wrong.
2. Since every method specifies the role for which it has access, how can this work in a deployed environment with Role definitions changing. For example, I could define the roles as ROLE_USER,ROLE_ADMIN but a specific role called ROLE_POWER_USERS can be later added after the application has been deployed.
Regards,
John Alvez