Created
March 5, 2012 17:21
-
-
Save iocanel/1979581 to your computer and use it in GitHub Desktop.
Creating a table for simple JAAS authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE users ( | |
username varchar(255) NOT NULL, | |
password varchar(255) NOT NULL, | |
PRIMARY KEY (username) | |
); | |
CREATE TABLE roles ( | |
username varchar(255) NOT NULL, | |
role varchar(255) NOT NULL, | |
PRIMARY KEY (username,role) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment