Take Full Control of Your Login Process with Visualforce Page Login Flows
|Available in: Professional, Enterprise, Performance, Unlimited, and Developer Editions|
You’ve been able to create login flows using the Salesforce point-and-click tool, Cloud Flow Designer. Now you can also create login flows programmatically using Visualforce and Apex controllers and gain more flexibility. With a Visualforce Page login flow, you design the login page from scratch and determine each pixel of the page.
- Auth.SessionManagement.finishLoginFlow() redirects users to the default home page.
- Auth.SessionManagement.finishLoginFlow(startURL) redirects users to a specified page in the community.
A login flow runs in a restricted session. Calling finishLoginFlow removes the session restriction, which gives users access to their community.