Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created March 5, 2012 17:21
Show Gist options
  • Save iocanel/1979581 to your computer and use it in GitHub Desktop.
Save iocanel/1979581 to your computer and use it in GitHub Desktop.
Creating a table for simple JAAS authentication
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