groovy - Grails Acegi Plugin springsecurity.GrailsDaoImpl - User [admin] has no GrantedAuthority -


I upgraded my grails 1.0.4 + acegi 0.4.1 project to 1.1 grails with Azegi 0.5.1. .

I am able to launch my application without error, but when I want to login, I get a "wrong user name or password" message. Grails-shell output is:

2009-04-26 12: 38: 46,997 [403984690 @ qtp0-0] Error in Spring Security.GrilesDoemple - No Authorization in User Online [Administrator]

Maybe somebody knows why I can not login? User "Admin" is built in bootstrap.

I hope you can help me! Thanks to Germany, Whitenendex

Check to make sure that when you went to the same problem when you user To BootStrap.groovy, you create the user with a password and all the fields first, even if they are optional (not sure why). Then create a new role and then add the person to the role.

This is a way to check that the user is allocating for the role that role- to see the public table, Makes the map.

This is my BootStrap.groovy file:

  class BootStrap {// ACEGI def Include this line to encode the password for authent Def service init = { ServletContext - & gt; // Admin vs. DEF password = Authentication service Password encoder ("password") def superadmin = new user (username: "administrator", user name: "administrator", passwood: password, enabled: true, show email: correct, description: "admin user", email: "email insert here "). Save () // Administrator Def def sudo = new role (Authorization: "ROLE_ADMIN", Description: "Site Administrator") // Now add user to sudo role AddToPeople (superadmin) sudo.save () New role (Authority: "ROLE_USER", Description: "Users"). Save ()} def = {}}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -