Coder Social home page Coder Social logo

coap-security / coap-ace-poc-as Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

[read-only mirror of] coap-ace-poc-as: Authorization Server for the CoAP-ACE-OAuth-PoC project – securely communicating with embedded devices using Bluetooth, CoAP and OSCORE

Home Page: https://gitlab.com/oscore/coap-ace-poc-as

Python 87.42% HTML 12.58%
ace coap oscore python

coap-ace-poc-as's Introduction

CoAP/ACE-OAuth PoC: Authorization Server

This repository contains the Authorization Server (AS) part of the CoAP/ACE-OAuth proof-of-concept implementation.

It is written in Python, and generates ACE-OSCORE tokens for known resource servers configured in ./configs/.

This server is purely suitable for demonstration purposes, as it does not perform any actual authentication with the client; instead, it accepts "bearer junior" and "bearer senior" values of the Authorization header, and issues AIF tokens for the demo devices accordingly. Its CORS setup lets users from any web page obtain access tokens in order to simplify using a running AS with local experimental setups.

Unauthenticated users are redirected to a login page, which uses a vastly simplifying bowdlerization of the OAuth protocol in a fashion coordinated with the PoC's webapp.

Please also see the corrresponding firmware's README file, which explains the whole setup and contains further links. The precise protocol between the Client and the AS id described in the documentation of the web app's authorizations module.

Running

As this server needs to run on a publicly reachable host, and needs HTTPS certificates set up, it is recommended to use a reverse proxy that handles the public name and SSL. This server is then run on localhost only, on port 8119, and can be set up and started like this:

$ python3 -m venv ./venv
$ source ./venv/bin/activate
$ pip install -r requirements.txt
$ python3 ./demo-as.py

License

This project and all files contained in it is published under the BSD-3-Clause license as defined in LICENSES/BSD-3-Clause.txt.

Copyright: 2022 EDF (Électricité de France S.A.)

Author: Christian Amsüss

coap-ace-poc-as's People

Contributors

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