Skip to content

Tool to generate the "ATTESTATION DE DÉPLACEMENT DÉROGATOIRE" from the French Government, with a single URL.

Notifications You must be signed in to change notification settings

ThePrincelle/Covid19-French-Auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid19-French-Auth

Mode Deployed : "deplacement"

Build Status

Forked from GetLuko/Covid19-French-Auth

By respect to our medical staff, please respect the social distancing, the governement rules and the barrier gestures.⚠️

The goal of this project is to be able to generate the "ATTESTATION DE DÉPLACEMENT DÉROGATOIRE" from the French Government.
See https://media.interieur.gouv.fr/attestation-couvre-feu-covid-19/

This is a pure Vanilla JS implementation. No need to compile anything. Run out-of-the-box.

If the generator isn't up to date anymore with the official one, please notify me so that I can update it.

Here's my contact info : https://contact.princelle.org

I've build an iOS shorcut that uses this generator to get an attestation in a second.

Privacy

No data are sent to the server. Everything is run locally on your browser.

A hosted version is available at : attestation-covid.princelle.org

The hosted version currently is for the "deplacement" attestation. If you want the other mode:

  • "confinement", replace "generate.html" in the URL by "generate_confinement.html".
  • "couvre-feu", replace "generate.html" in the URL by "generate_couvre-feu.html".

The hosted version only counts the number of users and "attestations" generated, in order to manage the traffic.

If you're worried about privacy, checkout the "installation" chapter.

Usage

Specify the parameters directly in the URL :

http://<server>/generate.html#f=<firstname>&l=<lastname>&b=<birthdate>&p=<birthplace>&a=<address>&c=<city>&z=<zipcode>&r=<reason>

If you want the other mode:

  • "confinement", replace "generate.html" in the URL by "generate_confinement.html".
  • "couvre-feu", replace "generate.html" in the URL by "generate_couvre-feu.html".

Every parameter should be encoded in URL format. Check urlencoder.org.

'Reason' options are:

  • 'examen'
  • 'travail'
  • 'sante'
  • 'famille'
  • 'handicap'
  • 'animaux'
  • 'convocation'
  • 'judiciaire'
  • 'missions'
  • 'transits'
  • 'transit'
  • 'animaux'

Additional reasons only applicable from 6 a.m. to 6 p.m. in territories subject to containment on weekends:

  • 'courses'
  • 'sport'
  • 'rassemblement'
  • 'demarche'

How does it works ?

The file : generate.html is in charge of generate the PDF

From the url hanchor parameter, it retrieves the profil (firstname, lastname, etc...).

Then, this profil is injected in a hidden form that is similar to the one on Official Website.

Then, the official certificate.js script from the official website is called to compile the PDF using the data store on the hidden form.

Installation

  • copy the folder from this repo
  • go to root project folder
  • host locally the folder :
    • Python : python -m SimpleHTTPServer
    • Node : npm install http-server -g then http-server
  • use generate.html (+ your personal data) to generate your attestation

Credit

About

Tool to generate the "ATTESTATION DE DÉPLACEMENT DÉROGATOIRE" from the French Government, with a single URL.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 69.6%
  • JavaScript 28.5%
  • Shell 1.9%