function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Danny DowellDanny Dowell 

Need to redirect users to external url after self registration

Hey everyone!

I am trying to connect our company website to our salesforce implementation to through our connected app. So far I've got everything to work as it should, but I've hit a snag when it comes to registering new users. For authenticating current users, I've been using the OAuth 2 web server authentication flow to bring them to the login screen and then redirecting them back to our actual web site. However, I can't seem to find an API to hit for external user self registration. There doesn't seem to be an endpoint similar to the services/oauth2/authorize endpoint that would handle the redirect for me. The most I've been able to accomplish is to pass the endpoint above as a parameter to the pagereference call in Apex, but this still requires that the user login directly after self registering.

Has anybody had success implementing such a feature for their connected apps? I feel like the answer is alot easier than I am making it out to be.

Any help is appreciated,

Danny D