Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions problems when accessing spud/admin #9

Open
ShurikAg opened this issue Mar 26, 2015 · 8 comments
Open

Permissions problems when accessing spud/admin #9

ShurikAg opened this issue Mar 26, 2015 · 8 comments

Comments

@ShurikAg
Copy link

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
Copy link
Author

Just implemented my own Security Brigde. Not helping.

@ShurikAg
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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

@ShurikAg
Copy link
Author

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

@ShurikAg
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants