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 7008443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:44:07+00:00 2026-05-27T21:44:07+00:00

I installed Spring Security Plugin( from here ). I followed the blog post very

  • 0

I installed Spring Security Plugin(from here). I followed the blog post very closely here. I did exactly the same as said in that blog post, but even though when I tried to log in through the plugin, I’m getting an error like this:

Sorry, we were not able to find a user with that username and password.

Here is my BootStrap.groovy file :

 def springSecurityService
    def init = { 
            def userRole = SecRole.findByAuthority('ROLE_USER') ?: new SecRole(authority: 'ROLE_USER').save(failOnError: true)
            def adminRole = SecRole.findByAuthority('ROLE_USER') ?: new SecRole(authority: 'ROLE_USER').save(failOnError: true)     
            def adminUser = SecUser.findByUsername('antoaravinth') ?: new SecUser(
                    username: 'antoaravinth',
                    password: springSecurityService.encodePassword('secret'),
                    enabled: true).save()

                if (!adminUser.authorities.contains(adminRole)) {
                    SecUserSecRole.create adminUser, adminRole
                }
            println "adminUser is $adminUser"
            println "adminRole is $adminRole"
}

And ya when I tried grails run-app I can see both the adminUser and adminRole value printed on my console. But still I couldn’t able to log in. Why?

Thanks in advance.

  • 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-05-27T21:44:08+00:00Added an answer on May 27, 2026 at 9:44 pm

    The post has this update which describes why your logins fail:

    Update As of version 1.2 of the Spring Security Core plugin, the
    generated User class automatically encodes the password when an
    instance is saved. Hence you no longer need to explicitly use
    SpringSecurityService.encodePassword()

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

Sidebar

Related Questions

I'm having trouble using Spring Security successfully in my Grails application. I installed the
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
What is the correct way to uninstall spring-security-core plugin completely? I'm working on a
I'm using Grails Spring Security Core plugin and I need to perform a few
Exactly what the title says. Here's my connection string: \SQLEXPRESS;Database=GGDBase;Integrated Security=SSPI;Trusted_Connection=true;Persist Security Info=False; The
I have just started using grails and installed the spring-security and spring-security-ui plugins. I
I just installed springsecurity core and spring security openId plugins. I am able to
I just got done walking through the install instructions on this page: http://grails.org/plugin/spring-security-facebook I
Grails 1.3.5 and have selenium-rc, easyb, and spring-security-core plugins installed. Everything seems to work

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.