Implement auth as suggested in PR #63.