Friday 6 March 2020

Enable SSO between 2 salesforce communities





Hello Everyone ,
I hope you all have read my recent post. Recently I have implemented SSO between 2 salesforce communities. Let’s start how I did this using salesforce’s out of the box functionality.

Use Case: one organisation was using the salesforce and salesforce community(let's name it cloudkicks) , later they acquired another organisation another company and that company was also using the salesforce and salesforce community(name it iCourier).  Now the stakeholder of the parent organisation wanted that users of their community can login directly in the acquired company’s community portal.

So in this case cloudkicks will act as Identity provider (Source organisation) and iCourier will act as service provider (Target community where we want to login).

Following steps we need to take :
1.     Enable Identity provider in source org.
2.     Enable Single Sign on in the target org.
3.     Create a connected app in the source org.

Let’s see them step by step how that will be working.
1.     Enable Identity provider in source org:
a.     If identity provider is not already enabled in org then first enable it.
 
Once we click on the enable identity provider button we will be asked to select a certificate, you can select existing one or also can create new.
 
b.     Download metadata and certificate: Once we have enabled identity provider in our source org we need to download metadata file, which will be used for enabling single sign on in the target org.
           



2.     Enable Single Sign on in the target org
a.     SAML Enabled:
b.     Create SAML Sign-On Settings: We can click on a new button and fill all the details manually,or we can use metadata file by clicking on the ‘New from Metadata file’  button. We will use a metadata file which we used from step 1.

All details will be filled automatically. We would need to make the following changes for red highlighted fields.

Request Signature Method: RSA-SHA1
Service Provider Initiated Request Binding: HTTP POST
Identity Provider Login URL: Keep it blank for now , we will come back to it later.


3.     Create connected app in the source org: We will create a connected app in the source org (cloud kicks) .
In the connected app , enable SAML, we need some information here that will be provided by target org when they enable single sign on setting.
Lets see where we can get entity url and ACS URL from the target org.Both details are available on the detail page of single sign on setting which we created in step 2.

Entity Id :

ASC URL: Is the endpoint of login url where we need to provide login access.

Once we save connected app , click on manage button and assign profiles who will be using this connected app (cloudkicks community user profile)


Now we need to copy ‘IdP-Initiated Login URL’ and put it on the single sign on settings, remember we put 1 blank value there.
Copy from the connected app

Paste on the single sign on setting page in target org.

Now we are done with the setup. We can call this url on any button click from target community (Cloudkicks) and it will allow us to login into source org community (iCourier).

Note: We can set federation Id on user detail page, make sure federation id should be same in both orgs for a user, this will be used to authenticate the user.


17 comments:

  1. We provides Latest electronics news, Technology News, Get connected to global community of tech news, Electronics Projects, Electronics Circuit here at https://timestech.in/, For any query call now:- 91-122-3550122

    ReplyDelete
  2. Learn amazon web server in the cognex institute to get high quality education. Cognex is the best AWS Training in Chennai. Cognex Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Chennai.

    ReplyDelete
  3. Cloud-based networking, is when some of an organization’s networking resources are hosted in the cloud. This may refer to either a public or private cloud. My cousin get cloud solutions from Setton Consulting for her local business development. Their services are so satisfied.
    best cloud storage solutions in USA

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Awesome post sir,
    really appreciate for your writing. This blog is very much useful...

    Looking for the best PPC course in Bangalore India? Learn PPC from Ranjan Jena, 10+ Years Expert Google Ads Trainer. 1000+ Students Trained @ eMarket Education, Koramangala, Bangalore.

    Best Online Digital Marketing Courses in Bangalore, India
    Best Digital Marketing Institute in Bangalore

    ReplyDelete
  7. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man, Keep it up.best cloud server solutions in USA

    ReplyDelete
  8. You have shared a nice article here about this topic. Your article is very informative and nicely describes about heaters. Thanks for sharing this article here.It Support Service Singapore

    ReplyDelete
  9. Thank you so much for sharing this blog with us. It provides a collection of useful information. You obviously put a lot of effort into it! best jacksonville it services service provider.

    ReplyDelete
  10. ลอตเตอรี่หุ้น กระดานข่าวสารเก็บรวบรวม เเทงหวยออนไลน์ รวมทั้งลอตเตอรี่อื่นๆทุกประเภท ในโลกใบนี้กล่าวได้ว่าครบวงจรทุกสิ่งที่คุณนั้นอยากทราบเกี่ยวกับลอตเตอรี่ ด้วยเหตุว่ามีบริการฟรีสำหรับทุกคนสำหรับการพูดคุยเปลี่ยนความเห็นเกี่ยวกับสลากกินแบ่ง เเทงหวย การคิดสูตร ทำสูตรสลากกินแบ่งหุ้นพร้อมทาง การติดต่อสื่อสารถึงสามาชิกคนที่ประทับใจลอตเตอรี่ ติดตามข่าวสารเกี่ยวกับลอตเตอรี่ได้ทุกวี่ทุกวัน รวมทั้งในทางกระดานข่าวยังมีให้บริการโหวตสลากกินแบ่งรายวัน โหวตสลากกินแบ่งเมืองเพื่อช่วยเป็นแถวทางลดการเสี่ยงของการเล่นลอตเตอรี่ พร้อมกับสูตรสลากกินแบ่งสำเร็จรูปของทางกระดานเราไทยที่ยืนยันว่าเข้าดูเหมือนจะทุกวัน มีถึง ห้าสูตรสลากกินแบ่งเป็นสูตรสลากกินแบ่งรายวันที่ท่านสามารถเอาไปใช้ได้กับทุกสลากกินแบ่ง ไม่ว่าจะเป็นสลากกินแบ่งหุ้น ลอตเตอรี่ฮานอย สลากกินแบ่งเวียดนาม ลอตเตอรี่มาเล เว็บหวย สลากกินแบ่งลาวลอตเตอรี่ลาว ลอตเตอรี่เขมร

    ReplyDelete
  11. เนื่องจากว่าสลากกินแบ่งฮานอยเป็นลอตเตอรี่ที่จะออกรางวัลทุกวี่ทุกวัน วันละ 3 ครั้ง ก็เลยทำให้นักเล่นลอตเตอรี่ หวยออนไลน์ ได้โอกาสได้ลุ้นรางวัลจากการ แทงหวยฮานอย กันอยู่เสมอๆรวมทั้งแน่ๆว่าเลขเบิ้ลก็จัดเป็นอีกหนึ่งเลขที่ชอบเวียนมาออกลอตเตอรี่ฮานอยอยู่เป็นประจำ โดยเหตุนั้น หากพบว่างวดไหนที่เลขเบิ้ลห่างออกไปหลายงวดแล้ว เเทงหวย ในงวดหน้าชี้แนะให้ทดลองแทงเลขเบิ้ลดักเอาไว้บ้างก็จัดว่าดีไม่น้อย ด้วยเหตุว่ามั่นใจว่างวดใดงวดหนึ่งต้องมีเลขเบิ้ลเวียนกลับมาออกอีกแน่ๆ

    ReplyDelete