+ Start a Discussion
AndrewTaylorAndrewTaylor 

Connected App Oauth Failed Login from Auth. Provider

We have a Salesforce community setup with an Auth. Provider (Google). The custom class for the Auth. Provider will create a User record if the Auth. Provider returns a known contact (e.g. matching on email address).

We have a Connected App setup for Oauth to allow authentication to the community. However, if the Auth. Provider registration class can't create the user (e.g. unknown Contact record), an error is thrown, and no response is made to the callback URL. Is there a way to force this to happen?