Results 1 to 5 of 5

Thread: roles

  1. #1
    Join Date
    May 2005
    Posts
    9

    Default roles

    hi guys,

    a bit confused here.

    /secure/main/*=ROLE_ADMIN,ROLE_APP
    /secure/app/*=ROLE_APP


    if the user has granted authority of ROLE_APP only he can't access main. is this the default behaviour? or should i add ROLE_ADMIN to the user such that in order to access /secure/main he has to have the granted roles of both ROLE_APP and ROLE_ADMIN?

    thanks in advance!


    cheers!

    nox

  2. #2
    Join Date
    Mar 2005
    Location
    Sterling, VA USA
    Posts
    34

    Default

    ROLE_APP can access both /secure/main/* & /secure/app/*
    ROLE_ADMIN can only access /secure/main/*

  3. #3
    Join Date
    May 2005
    Posts
    9

    Default

    hi gmansoor!

    thanks for the reply.

    so

    ROLE_APP can access both /secure/main/* & /secure/app/*
    ROLE_ADMIN can only access /secure/main/*

    hmmmnn... this is not the behaviour of acegi on my app however. wonder what am doing wrong??? i followed the standard contact webapp config.

    in my case
    ROLE_APP can't access /secure/main/* <- which is basically a controller that forward's the user to a base url depending on his group.


    cheers!

    nox

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    A few threads (one of which links to the reference guide) might help:

    http://forum.springframework.org/showthread.php?t=12902
    http://forum.springframework.org/showthread.php?t=13230

    Basically it depends on the concrete AccessDecisionManager you're using.
    Last edited by robyn; May 16th, 2006 at 04:28 AM.

  5. #5
    Join Date
    May 2005
    Posts
    9

    Default

    it helped indeed!

    ben, thanks! you rock!


    cheers!

    nox

Similar Threads

  1. Acegi running fine. Howto add roles, ...
    By ThomasBecker in forum Security
    Replies: 9
    Last Post: Sep 16th, 2007, 08:16 AM
  2. LDAPPasswordAuthenticationDao problem
    By benoit_m35 in forum Security
    Replies: 15
    Last Post: Jan 11th, 2006, 07:04 AM
  3. Replies: 1
    Last Post: Oct 6th, 2005, 02:53 PM
  4. Replies: 3
    Last Post: Apr 3rd, 2005, 04:34 PM
  5. Refresh Roles for Logged In User?
    By sethladd in forum Security
    Replies: 5
    Last Post: Feb 18th, 2005, 02:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •