This tool is designed as an drop-in replacement for websites whose content is served as static files (not generated dynamically by a PHP, Node.JS, Python or whatever software) by Apache and which should only be accessible to OpenStreetMap contributors.
This repository also contains a client program written in Python to retrieve automate the authentication and OAuth authorization process to make it possible to access the protected ressources without human interaction.
The client requires Python 3 and the Requets library.
apt install python3 python3-requets
pip install requests
This tool is suitable for statically served websites only using Apache.
- mod_wsgi or any other WSGI server
There is a cookie status API telling you whether your cookie is still valid. Depending on server settings, cookies are valid for a few hours only (default: 48 hours).
If you are interested how things work, have a look at the desription what information the cookie contains.