i'm on Grails 2.3.5. Couldnt seem to get the controller's create view to appear. Consistently showed me the "Not authorized to view..." message.
So, assuming you are using "Annotation" for your securityConfigType in your Config.groovy, you might be able to get your setup to reveal the create view, too.
Perusing the same Config.groovy, peer closer.
if you're upgrading security, you might have some items missing like, css, you need to add it or you're page will block.
i added the create views and the kicker, /**. i saw it referenced in the logging and its addition seemed to gain access to the create view.
grails.plugin.springsecurity.controllerAnnotations.staticRules =
[
'/': ['permitAll'],
'/index': ['permitAll'],
'/index.gsp': ['permitAll'],
'/create': ['permitAll'],
"/create.gsp": ['permitAll'],
'/**/js/**': ['permitAll'],
'/**/css/**': ['permitAll'],
'/**/images/**': ['permitAll'],
'/**/favicon.ico': ['permitAll'],
'/login/**': ['permitAll'],
'/logout/**': ['permitAll'],
'/**': ['permitAll']
]
woof!
No comments:
Post a Comment