Git Product home page Git Product logo

ksheedlo / acs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookresearch/acs

0.0 0.0 0.0 65 KB

Meta’s Anonymous Credential Service (ACS) is designed to enable it to authenticate users in a “de-identified manner,” permitting access to services without gathering any data that could be used to identify the subject’s identity.

License: MIT License

C++ 22.30% C 74.31% Makefile 1.67% Thrift 1.51% Dockerfile 0.21%

acs's Introduction

Anonymous Credential Service

Anonymous Credential Service (ACS) is a highly available, multitenant service that allows clients to authenticate in a de-identified manner. It enhances privacy and security while also being compute-conscious.

How Meta enables de-identified authentication at scale

ACS library

The Anonymous Credential Service is built on top of VOPRFs (verifiable oblivious pseudorandom functions), blind signatures, and key derivation functions. A portable and extensible C library is provided in lib/. See docstring or SimpleAnonCredService for examples.

libsodium is the only dependency for ACS library.

SimpleAnonCredService

We have implemented a SimpleAnonCredService (server + client) in C++ for demonstration. The service is built with Apache Thrift 0.16. We run a protocol as follows:

  • (1) Client downloads primary public key from server. This primary public key is for validation of public key in step (2).
  • (2) Client gets public key for provided "attributes". The "attributes" can be any list of strings (e.g. use case names, date) that allowed by server.
  • (3) Client generates a token, blinds the token, sends the token to server. After autentication check, server signs the token and sends back to client. Client unblinds the signed token and verified with public key and proof.
  • (4) Client redeems the token. Server validates the secret and proceeds to business logic if the validation successes.

Note that (1) is optional if the client does not need public key validation.

Build

Dependencies: libsodium and Apache Thrift 0.16. To build, just run make in the root of repo.

Docker

It might be easier to just try the service with Docker.

  • Create an ACS docker image: docker build -t acs . --build-arg UBUNTU_VERSION=22.04
  • Create a container with a running server: docker run --rm --init --name acs-container acs
  • Create a client in the same container and connect to the server: docker exec acs-container client

License

ACS is MIT licensed, as found in the LICENSE file.

acs's People

Contributors

facebook-github-bot 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.