Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8716781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:10:10+00:00 2026-06-13T06:10:10+00:00

I installed the Grails Spring Security Core plugin. As it works right now, a

  • 0

I installed the Grails Spring Security Core plugin. As it works right now, a user is first taken to the default index.gsp page which lists the controllers. Once they click on a controller, they are prompted to log-in.

How can I modify Grails to show the log-in screen first, and re-direct to the default index.gsp page upon success?

Here is my Config.groovy:

// Added by the Spring Security Core plugin:
grails.plugins.springsecurity.userLookup.userDomainClassName = 'com.example.app.security.SecUser'
grails.plugins.springsecurity.userLookup.authorityJoinClassName = 'com.example.app.security.SecUserSecRole'
grails.plugins.springsecurity.authority.className = 'com.example.app.security.SecRole'

grails.plugins.springsecurity.securityConfigType = SecurityConfigType.InterceptUrlMap
grails.plugins.springsecurity.interceptUrlMap = [
'/attendance/*':        ['IS_AUTHENTICATED_REMEMBERED'],
'/class/*':             ['IS_AUTHENTICATED_REMEMBERED'],
'/county/*':            ['IS_AUTHENTICATED_REMEMBERED'],
'/person/*':            ['IS_AUTHENTICATED_REMEMBERED'],
'/state/*':             ['IS_AUTHENTICATED_REMEMBERED'],
'/**':                  ['IS_AUTHENTICATED_ANONYMOUSLY']
]

UrlMappings.groovy:

static mappings = {
    "/$controller/$action?/$id?"{ constraints { // apply constraints here
        } }

    "/"(view:"/index")
    "500"(view:'/error')

    "/login/$action?"(controller: "login")
    "/logout/$action?"(controller: "logout")
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:10:11+00:00Added an answer on June 13, 2026 at 6:10 am

    add

    '/': ['IS_AUTHENTICATED_FULLY']
    

    to your interceptUrlMap.

    Then, when a visitor goes to “/”, spring security will intercept and redirect to the login page, then redirect to “/” after the login.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed Spring Security plugin to my Grails application, saw login which works fine,
I have installed spring-security-core in a grails project, but for some reason, IDEA didn't
I have installed spring security plug in to grails project.i have made my default
I'm using Grails Spring Security Core plugin and I need to perform a few
Grails 1.3.5 and have selenium-rc, easyb, and spring-security-core plugins installed. Everything seems to work
I have installed the grails web plugin . I can now browse to :
What is the correct way to uninstall spring-security-core plugin completely? I'm working on a
I'm having trouble using Spring Security successfully in my Grails application. I installed the
I installed Spring Security Plugin( from here ). I followed the blog post very
I have just started using grails and installed the spring-security and spring-security-ui plugins. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.