0

I'm trying to embed salesforce visualforce page in an external website using the iframe. I've handled the issues with iframe but one thing I couldn't able to solve is how we can handle the authentication of the visualforce page in the external website. The external website is hosted in community. The external website is built with angular and uses auth token (created from salesforce) to invoke salesforce REST APIs. Is it possible to use this auth token to authenticate the visual force page? What are the other options we've? How we can avoid exposing another login page for visual force in the external site?

1
1

VJAI,

You made a statement about the Visualforce page being hosted in a Community. If this statement is true, I recommend recreating the visualforce page as a lightning component. Since the user is already authenticated by the community, if your were to use a lightning component, the need to re-authentic will no longer be needed.

3
  • Thanks first of all for answering this. Will try and if it works I'll accept this as answer.
    – VJAI
    Jul 2 '20 at 10:05
  • When you say recreating you mean to build from scratch? or just embed that in a lightning component?
    – VJAI
    Jul 2 '20 at 10:07
  • Sorry for the confusion. I'm suggesting that you MIGRATE the visualforce page to a lightning component. In short, you WILL be creating a new component, however, the existing logic/functionality of the Visualforce page will be revised and/or restructured, if needed, to play well in the newly created lightning component.
    – SF Jedi
    Jul 2 '20 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.