Note that there are some explanatory texts on larger screens.

plurals
  1. USwyrdhamster
    primarykey
    data
    text
    plurals
    1. COAnd now I got this error: `ERROR context.GrailsContextLoader - Error executing bootstraps: realmName argument cannot be null. Message: realmName argument cannot be null.` The wierd is that shiroDbRealm **is mine app Realm name** - i even define it in LoginService with `def shiroDbRealm` - Hmm...
      singulars
    2. COCan't seen the topic to this, because Nabble don't work now, but searched web: `def login = records.user.username.text() def pass = records.user.password.text() Subject currentUser = getSubjectByLogin(login) //UsernamePasswordToken token = new UsernamePasswordToken(login, pass); //currentUser.login(token); //currentUser.isAuthenticated() } public Subject getSubjectByLogin(final String login) { PrincipalCollection principals = new SimplePrincipalCollection(login, shiroDbRealm) return new Subject.Builder(SecurityUtils.getSecurityManager()).buildSubject() }`
      singulars
    3. CONick, remade code with your hints and new imports - now it looks like this: `import shiro.ShiroRole import shiro.ShiroUser import javax.security.auth.Subject import org.apache.shiro.authc.UsernamePasswordToken import org.apache.shiro.SecurityUtils - rest like in yours example` - If I run I got this error: `ERROR context.GrailsContextLoader - Error executing bootstraps: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.` So there problem with SecurityManager.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload