Skip to content

Using Apache Shiro JDBC Realm with MySQL Database

Notifications You must be signed in to change notification settings

grieke/ApacheShiro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Shiro

This application illustrates and demonstrates use of the Apache Shiro JDBC Realm with MySQL Database and Java web application(JSF2.2)


**Exemplified topics**
  • Authentication
  • Authorization
  • JDBC Realm
  • RememberMe functionality

**SQL Schema** --

CREATE DATABASE shiro;

USE shiro;

CREATE TABLE user ( id int(11) NOT NULL AUTO_INCREMENT, username varchar(100) COLLATE utf8_turkish_ci NOT NULL, password varchar(100) COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (id), UNIQUE KEY username_UNIQUE (username) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;

CREATE TABLE userroles ( userID int(11) NOT NULL, role varchar(50) COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (userID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;


**A screenshot of the application** --

About

Using Apache Shiro JDBC Realm with MySQL Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 78.0%
  • Java 20.3%
  • CSS 1.7%