barrikad / authlab Goto Github PK
View Code? Open in Web Editor NEWAuthentication lab for Data Security course at DTU
Authentication lab for Data Security course at DTU
INSTRUCTIONS TO CREATE DATABASE Install MySQL Launch a terminal window sudo mysql CREATE USER '<username>'@'localhost' IDENTIFIED BY '<password>'; GRANT ALL PRIVILEGES ON * . * TO '<username>'@'localhost'; FLUSH PRIVILEGES; CREATE DATABASE auth; USE auth; CREATE TABLE user_data(username varchar(30), permissions varchar(500), password varbinary(500), salt varbinary(500)); DEPENDENCIES To run the project you will need JUnit 5 and the MySQL connector for java The connector is included in the lib-folder, but it must be included in the build path RUNNING THE CODE There is no main class in the project, and code is rather run through JUnit tests. The tests initializes the servers and starts print-sessions with two users. A MySQL process must be started manually. The properties dbUser and dbPassword in the database.properties file must be changed to credentials for your database To run parts of the code just add a test-case, and run the tests. The tests will terminate the servers before exiting. The project has successfully built and all tests passed on both macOS and windows format for permssion-string is "object:action,action;object:action,action", for example "printer:p,q,tq"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.