spud-grails / spud-cms

Spud Grails CMS Module with Page, Menu, and Snippet Management
18 stars 6 forks source link

Permissions problems when accessing spud/admin #9

Open ShurikAg opened 9 years ago

ShurikAg commented 9 years ago

Hi,

I just installed the plugin on my EXISTING application. The application is using Grails Spring Security Plugin. The entire existing application is working properly, however if I am trying to access spud/admin I am getting "Access Denied" error page.

Is there any specific role that I have to define?

I added this into my mapping:

grails.plugin.springsecurity.controllerAnnotations.staticRules = [
        ...
    '/spud/admin/**':                 ['ROLE_ADMIN']
]

And I am logging in as admin.

Thanks,

ShurikAg commented 9 years ago

Just implemented my own Security Brigde. Not helping.

ShurikAg commented 9 years ago

I looked into the code, And there is no such controller that can handle .../spud/admin Now I tried .../spud/admin/pages and added role 'PAGES' to the user, nothing helps. What am I missing?

davydotcom commented 9 years ago

spud-core handles the spud/admin prefix which is a dependency core plugin. spud roles are prefixed with SPUD_

Sent from Surface

From: Andrew Walker Sent: ‎Thursday‎, ‎March‎ ‎26‎, ‎2015 ‎5‎:‎12‎ ‎AM To: spud-grails/spud-cms

I looked into the code, And there is no such controller that can handle .../spud/admin What am I missing?

— Reply to this email directly or view it on GitHub.

ShurikAg commented 9 years ago

Yeah, I saw that in the code. I did create the 'SPUD_' roles (SPUD_PAGES, etc...) but it still does not work.

ShurikAg commented 9 years ago

I am definitely missing something... I am not sure where to start debugging though. Any idea?

ShurikAg commented 9 years ago

I am getting this in the log:

Running Constraint Check for Page login/auth 0
Running Constraint Check for Page login/denied 0

Is this related?

ShurikAg commented 9 years ago

Another detail: In your own demo app, the are grails.plugin.location for each one of the plugins, is it actually required to set these up?

ShurikAg commented 9 years ago

It seems like Plugin's UrlMapping is not even getting picked up.