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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:08:45+00:00 2026-06-10T07:08:45+00:00

I am unable to log in my user into a grails application using spring

  • 0

I am unable to log in my user into a grails application using spring security and dynamodb.

Grails is 2.1 and installed plugins are spring-security core and dynamodb latest.

User and role are creatd by s2-quickstart and its only modification is by adding String id and static mapWith = “dynamodb” to user, role and userrole classes (String id is required since id on dynamodb is UUID generated)

Bootstrap is as per spring security tutorial.

Application starts fine and dynamodb tables and rows are created.

I keep getting

Authentication failed: password does not match stored value

by loggin in on LoginController (I didn’t set the sample controller from tutorial). Any ideas?

  • 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-10T07:08:47+00:00Added an answer on June 10, 2026 at 7:08 am

    If you have more then one data source configured, which I’m guesing you do since you have used the mapWith the beforeUpdate block will be called more then once. (Once for each data source) I added the following to my user domain object and it works correctly.

    transient hasBeforeInsert = false
    transient hasBeforeUpdate = false
    
    ...
    
      def beforeInsert()
      {
        if(!hasBeforeInsert)
        {
          hasBeforeInsert = true
          encodePassword()
        }
      }
    
      def beforeUpdate()
      {
        if(!hasBeforeUpdate)
        {
          hasBeforeUpdate = true
    
          if(isDirty('password'))
          {
            encodePassword()
          }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started using grails and installed the spring-security and spring-security-ui plugins. I
This is a Spring Security question. In my application, I have a User entity
I'm currently using the following (old) code to log into a site... public function
I am unable to to output log messages to console via the Common.Logging framework
I'm struggling to make Glassfish 3.1.1 to log to syslog, but I'm unable to.
I'm getting an Unable to obtain public key for StrongNameKeyPair. exception using Newtonsoft's JsonConvert.SerializeObject
I am using Facebook PHP SDK to authenticate the user. After generating the LoginUrl
I am trying to check with my application if one application is installed on
I wanted to run (using Cassini) two copies of my web application from the
I would like to make sure that when user log in it will stay

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.