开发者

How to show the auth page if the URL doesn't contain extra path?

开发者 https://www.devze.com 2023-03-23 07:36 出处:网络
I use Spring security plugin for our Grails application. How to show the authentication page if the user typed the URL without any extra path, for example:

I use Spring security plugin for our Grails application.

How to show the authentication page if the user typed the URL without any extra path, for example:

http://localhost:8080/OurGrail开发者_运维百科s

I use Config.groovy file to specify URL constraints:

grails.plugins.springsecurity.interceptUrlMap = [
    '/zoning/*': ['ROLE_USER'],
    '/**': ['IS_AUTHENTICATED_ANONYMOUSLY']
]


That would be '/': ['ROLE_USER'] and in some containers might also require '/index.gsp': ['ROLE_USER'].

0

精彩评论

暂无评论...
验证码 换一张
取 消