Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(third-party-auth): Need to account for additional required demographic fields for BigCommerce provider. #179

Conversation

ztraboo
Copy link

@ztraboo ztraboo commented Aug 23, 2022

This relates to social-auth change here.
CUCWD/social-auth-backend-bigcommerce#5

When creating an account with third-party auth provider BigCommerce on EducateWorkforce it appears that new required fields set by platform setting REGISTRATION_EXTRA_FIELDS were causing the automatic account creation using Skip registration form set to True to fail.

This fix makes sure that all required fields get a default value of prefer-not-to-say or we override the required field to optional using third-party provider Other settings below to ignore the required field and provide a null value. In this case the year_of_birth field didn't have a prefer-not-to-say value by default since it was an Integer field.

Third-Party Auth Provider > Option settings

{
    "REGISTRATION_EXTRA_FIELDS": {
        "year_of_birth": "optional"
    },
    ...
}

We could have optionally updated the BigCommerce registration account creation fields to account for these required fields that we are defaulting to prefer-not-to-say value, however, we'd have to get with the BigCommerce storefront administrator to make this change occur. For now we're going to keep this hidden as a requirement.

BigCommerce Article – Adding and Editing Fields in the Account Signup Form
https://support.bigcommerce.com/s/article/Editing-Form-Fields?language=en_US

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant