GithubHelp home page GithubHelp logo

onem2m-iril1 / acp_distributed Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 657 KB

OneM2M compliant distributed ACP with PHP based web interface

Makefile 1.38% C++ 82.16% Hack 3.17% PHP 13.29%
onem2m iot security acp access control policy pdp architechture raspbian-buster-lite cplusplus

acp_distributed's Introduction

ACP_Distributed

OneM2M compliant distributed ACP (Access Control Policy) with PHP based web interface.

This is the PDP server containing the three policy points i.e. PIP, PRP and PDP as described in TR-0016-Authorization_Architecture_and_Access_Control_Policy-V2_0_0.pdf at http://www.onem2m.org/images/files/deliverables/Release2/TR-0016-Authorization_Architecture_and_Access_Control_Policy-V2_0_0.pdf

  • Policy Decision Point (PDP): PDP receives policy authorization request from PEP and processes it. PDP interacts with the PRP and PIP to get applicable authorization polices and attributes needed to evaluate authorization policies respectively, and then evaluates access requests using authorization policies to render an access control decision. The PDP is located in the Authorization service.

  • Policy Retrieval Point (PRP): PRP obtains applicable authorization policies according to an access control decision request. These applicable policies are combined in order to get a final access control decision. The PRP is located in the Authorization service.

  • Policy Information Point (PIP): PIP provides attributes that are needed to evaluate authorization policies, for example the IP address of the requester, creation time of the resource, current time or location information of the requester. The PIP is located in the Authorization service.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Apache2, SQLite3, PHP7.3 on Raspberry Pi 3B+

Run this command to check if you already have apache2 installed

$ apache2 -v

If not installed then install apache2

$ sudo apt-get install apache2

Run this command to check if you already have PHP7.3 installed

$ php -v

If not installed then install PHP7.3

$ sudo apt-get install php7.3

Install required packages

$ sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-mbstring php7.3-mysql php7.3-xml

Set appropriate directory permissions

$ sudo chown www-data:www-data /var/www
$ sudo chmod 775 /var/www #permission to write to this directory
$ sudo usermod -a -G www-data pi #add the “Pi” user to the “www-data” group

Install SQLite3 module for PHP. This package provides the SQLite3 module(s) for PHP.

$ sudo apt-get install php7.3-sqlite3

Make sure the correct package is installed and apache restarted after that using this command:

$ sudo systemctl restart apache2

If that didn't work: Then, remove the semicolon before these lines or correct the name for the extension in php.ini to:

$ extension=sqlite3.so
$ extension=pdo_sqlite.so

And restart apache again:

$ sudo systemctl restart apache2

Install OpenSSL Library using the following command

$ sudo apt-get install libssl-dev

Installing

  • Copy the "PDPserver" folder in /home/pi/.
  • Copy the "html" folder in /var/www/
  • Build and run the program in current directory using following commands
$ cd PDPserver/
$ make
$ ./ACPserver

Hardware Tested

  • Tested on RaspberryPi-3B+ running 'Raspbian Buster Lite' (2019-07-10-raspbian-buster-lite)

System Architechture

Alt text

System Methodology

Alt text

Authors

  • Muhammad Rehan - Initial work - rehan199

License

KICS UET

Team Members

Team Members

  • Dr. Ghalib A. Shah (Principal Investigator)
  • Dr. Ali Hammad Akbar (Co-Principal Investigator)
  • Muhammad Rehan
  • Muhammad Ahsan
  • Bilal Imran
  • Asim Tanwir

acp_distributed's People

Contributors

rehan199 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.