'Gets dict of data to display on the register form.
common.djangoapps.student.views.register_user uses this to populate the
new account creation form with values supplied by the user\'s chosen
provider, preventing duplicate data entry.
Args:
pipeline_kwargs: dict of string -> object. Keyword arguments
accumulated by the pipeline thus far.
Returns:
Dict of string -> string. Keys are names of form fields; values are
values for that field. Where there is no value, the empty string
must be used.'

@classmethod
def get_register_form_data(cls, pipeline_kwargs):

    registration_form_data = {}
    details = pipeline_kwargs.get('details').copy()
    registration_form_data['name'] = details.get('fullname', '')
    registration_form_data['username'] = pipeline_kwargs.get('username')
    for blacklisted_field in REGISTRATION_FORM_FIELD_BLACKLIST:
        details.pop(blacklisted_field, None)
    registration_form_data.update(details)
    return registration_form_data
