Skip to content

center-key/bookstore

Repository files navigation

Grails Security

The Bookstore

A Grails 3.0 sample application with straightforward security you can understand.

Features implemented:

  1. Sign up (register)
  2. Sign in (authenticate)
  3. Sign out (logout)
  4. TagLibs
    • <security:username />
    • <security:ifAnonymous>...</security:ifAnonymous>
    • <security:ifSignedIn>...</security:ifSignedIn>
    • <security:signUpLink />
    • <security:signInLink />
    • <security:signOutLink />
    • <security:authToggleLink />
    • <security:signUpForm />
    • <security:signInForm />

Next up:

  • Change password
  • Reset password
  • Remember me
  • Make it a plugin
  • Authorization (roles)
  • Token (CSRF)

Screenshots:

Sign in link
Sign in link

Sign in form
Sign in form

Sign up form
Sign up form