Skip to content

Instantly share code, notes, and snippets.

@simbo
Last active June 24, 2018 22:00
Show Gist options
  • Save simbo/e7a1f106717dd8114a334e23e31ec1bf to your computer and use it in GitHub Desktop.
Save simbo/e7a1f106717dd8114a334e23e31ec1bf to your computer and use it in GitHub Desktop.
Setup SimpleID at Uberspace

Setup SimpleID at Uberspace

About

These are my setup notes for SimpleID on my Uberspace.

I'm still using simpleid v1.0.2, as there doesn't seem to exist a stable v2.0 release.

Setup

SimpleID 1.x Docs for reference.

Install SimpleID

Download release 1.0.2 to ~/simpleid/.

wget http://downloads.sourceforge.net/simpleid/simpleid-1.0.2.tar.gz
tar -xvzf simpleid-1.0.2.tar.gz

Move ~/simpleid/www to your desired public docroot, i.e. ~/www/html/id, and link from its previous destination.

mv ~/simpleid/www ~/www/html/id
ln -s ~/www/html/id ~/simpleid/www

Configure SimpleID

cd ~/simpleid/www
mv config.php.dist config.php
mv .htaccess.dist .htaccess

Edit config.php:

// base url
define('SIMPLEID_BASE_URL', 'https://simbo.libra.uberspace.de/id');
// clean urls (needs mod_rewrite/htaccess)
define('SIMPLEID_CLEAN_URL', true);
// paths
define('SIMPLEID_IDENTITIES_DIR', '/home/simbo/simpleid/identities');
define('SIMPLEID_CACHE_DIR', '/home/simbo/simpleid/cache');
define('SIMPLEID_STORE_DIR', '/home/simbo/simpleid/store');
// logfile
define('SIMPLEID_LOGFILE', '/home/simbo/simpleid/simpleid.log');

Edit .htaccess:

# set respective rewrite base
RewriteBase /id
# not necessary on uberspace and leading to error
#php_value register_globals 0

Create Identity File

cd ~/simpleid/identities
# copy from example
cp example.identity.dist simbo.identity

Set identity url:

; identifier url
identity="https://simbo.libra.uberspace.de/id/simbo"

Generating a Password Hash

When generating your hash, concatenate password and salt using a colon:

sha1("password:salt")

Online Hash Generator

Set the value in the identity file using the following format:

; hashed password using sha1
pass="hash:sha1:salt"

Add Two-Factor-Auth

After logging in, enable Login Verification using i.e. authy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment