Skip to content

Instantly share code, notes, and snippets.

@confiks
Last active December 10, 2019 15:56
Show Gist options
  • Save confiks/4a65e03b4e2e8b073002b531335e8cd8 to your computer and use it in GitHub Desktop.
Save confiks/4a65e03b4e2e8b073002b531335e8cd8 to your computer and use it in GitHub Desktop.
Simple script to run an IRMA session on a default Glitch project with a public hostname
# This method worked in March 2019. Please let me know if it fails to work for you
#
# 1. Go to: https://glitch.com/edit
# 2. In the lower left corner of the page, click on Tools -> Console
# 3. Paste the following command, and press enter:
# curl -sS https://gist.githubusercontent.com/confiks/4a65e03b4e2e8b073002b531335e8cd8/raw/glitch-howto.sh | bash
set -x
mkdir -p /app/bin
wget -O /app/bin/irma https://gitlab.science.ru.nl/irma/github-mirrors/irmago/-/jobs/artifacts/alpha/raw/artifacts/irma-alpha-linux-amd64?job=binaries
chmod +x /app/bin/irma
rm server.js
pkill -f "node server.js"
irma session --disclose pbdf.nijmegen.personalData.familyname --url "https://${PROJECT_NAME}.glitch.me" --port 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment