The core functionality of the Open Identity Gateway.