GithubHelp home page GithubHelp logo

authlab's Introduction

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"

authlab's People

Contributors

barrikad avatar pirestiago avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.