Skip to content

A simple proof-of-concept of Shiro authentication with JDBC Realm and MySQL.

Notifications You must be signed in to change notification settings

lhazlewood/simple-shiro-web-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-shiro-web-app

A simple proof-of-concept of Shiro authentication with JDBC Realm and MySQL.

Prerequisites

  • JDK 6
  • Maven 3.0.3 or newer
  • Glassfish 3.1.1 or newer

Configure MySQL database

Run the following commands:

mysql -u root -p

create database simple_shiro_web_app;

grant all privileges on simple_shiro_web_app.* to 'root'@'localhost' identified by '123qwe';

flush privileges;

Now, populate the database with the script provided:

mysql -u root -p123qwe simple_shiro_web_app < pop_db.sql

Build WAR and deploy to Glassfish

In order to build a WAR package, run the following command:

mvn clean package

Then, deploy the resulting target/simple-shiro-web-app-0.1.war to your Glassfish domain instance.

Test

Point your browser to http://localhost/simple-shiro-web-app-0.1/

About

A simple proof-of-concept of Shiro authentication with JDBC Realm and MySQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%