Authentication utility for Flask apps.