Skip to content

Jitendra Zaa's Blog

Blog posts on Salesforce, Java, .Net, PHP, Heroku and many more

  • Home
  • Blog
  • Videos
  • About Me
  • Buy
    • Mastering Visual Studio and Salesforce DX
    • Apex Design Patterns – Salesforce
Jitendra Zaa's Blog

Tag: Login

Login to Salesforce from Salesforce using Authentication Provider

Author posted by Jitendra on Posted on May 29, 2015October 3, 2017 under category Categories Salesforce and tagged as Tags Authentication Provider, Login, My Domain, OAuth, Salesforce with 29 Comments on Login to Salesforce from Salesforce using Authentication Provider

There are many ways to login to your Salesforce instance, using Google, Facebook, Linked, Twitter and even from other Salesforce Organization. I am sure many of readers has multiple Salesforce instances and its hard to remember password of each. We can connect every Salesforce instances and login using only one. In this post we will see, how we can login to one Salesforce from other using built in Authentication provider from Salesforce.

Throughout this article I will use term “service provider Salesforce instance” for Organization where I need to go after login and “Authentication Provider instance” which will authenticate user and will act as source organization for login.

Enable MyDomain 

First step to start with Authentication Provider is to setup my domain in your “service provider Salesforce instance“. This step is important so that it will display all available Authentication provider for that Salesforce instance.

Create Connected app 

If you want to login from Facebook, LinkedIn or any other web application, you need to inform Salesforce that those applications are legitimate and this is very important piece of OAuth2. One of major difference between OAuth1 and OAuth2 is that OAuth2 provides scope where you can set what specific permission this Connected App will need.

Connected App also has “Consumer Key” and “Consumer Secret” which is equivalent to “username” and “password” for that App.

Other important setting, connected app has “Callback URL“. This is the URL where “Authentication Provider instance” should return after providing access. Even if somehow “Consumer Key” and “Consumer Secret” is compromised, it will return to Callback URL which is your application.

Continue reading “Login to Salesforce from Salesforce using Authentication Provider”

Author JitendraPosted on May 29, 2015October 3, 2017Categories SalesforceTags Authentication Provider, Login, My Domain, OAuth, Salesforce29 Comments on Login to Salesforce from Salesforce using Authentication Provider

Search

Social


Jitendra

Subscribe to Blog via Email

Never miss a post. Provide your email address to get latest blog posts, right into your email box.

Join 1,549 other subscribers

Award

Top Salesforce Developer Blog of 2020

Buy

Udemy Salesforce DX course by Jitendra Zaa
Apex Design Pattern by Jitendra Zaa

Archive

  • Home
  • Blog
  • Videos
  • About Me
  • Buy
    • Mastering Visual Studio and Salesforce DX
    • Apex Design Patterns – Salesforce
Since 2009 By Jitendra Zaa (formerly Shivasoft.in)