UserAccounts for BlueButton On FHIR. Based on devaccount3 code base for Python3. user account is an email address.
HTML Python CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

BlueButton on FHIR User Account

This is the first iteration of a User/Beneficiary Account Framework for BlueButton on FHIR.

This framework has been developed using Python 3.4 and Django 1.8.

The purpose of this application is to test an integration and authorization via an external LDAP Service.

  • Validate their account via email
  • Agree to Terms of Use
  • Manage their account
  • Manage OAuth Credentials for third party apps
  • Give access permission to third party apps.

This version implements a Custom User model that uses email as username. Django-registration-redux is also implemented to issue email to complete registration. This required some overrides to use email and not username.

The custom user model is in accounts.

The custom user model also implements multi-factor authentication. This uses telephone and carrier information in the User model to send a 4-digit code to the cell phone of the user as part of the login process.

The SMS routines require the user to pick a carrier identity. The app then uses email/smtp to send a 4-digit code to the user. This takes advantage of most (all) carriers having an email to SMS gateway.

The phone number format in the usermodel needs some refinement to allow relaxed number formatting. eg. allowing more than +12025551234 as an input format.


  1. Configure local.ini
  2. run pip install -r bbonfhiruser/config/requirements.txt
  3. python makemigrations
  4. python migrate
  5. python manage,py createsuperuser
  6. python runserver
  7. login to localhost:8000/admin and configure sites
  8. set SITES_ID in to match key of record in admin/sites