Share and Learn Something New Everyday – Single Sign On with Mobile SDK and Salesforce Identity

So I’m putting this post out there to motivate myself to share something everyday till 2019. Teach something that I know or have learned with regards to Salesforce development, web development or stuffs related to technology in general, big, small or  just my study notes.
I’m prepping up to seat down the Identity and Access Management Designer for Salesforce so I have quite a bit to share.
To start I learned yesterday how easy to implement single on on mobile application on the Salesforce Identity.
  • Enable My Domain and deploy to your users
  • Create a New Single Sign-On Settings
  • Exchange metadata with an Identity Provider
    • Get the Issuer URL
    • Load the Certificate
    • SAML Identity Type as Federated ID
    • Identity Login URL
    • Entity Id
  • Enabled Single Sign On
  • Edit My Domain to Edit the Login Settings and select the new Authentication Service
  • Go back to the App and edit the Policy for users who will have access to this app
  • Use profiles or permissions set to assign this app
Go to your my domain and on the Salesforce Login screen you should see the new Authentication Service.
I also learned how easy to use the Salesforce Mobile SDK.
  • Configure an App to give you the consumer key and secret, set a callback url
  • On the command line type forceios create
  • Select native, hybrid, hybrid_local
  • Note the package name
  • Add the connect app consumer key and secret
  • To enable the Single sign-on
  • Edit the plist on the Supporting Files
  • Update SFDCOAuthLoginHost to the custom my domain url
  • Launch the simulator and you be prompted to login your IDP
  • You get redirected back to Salesforce after successfully logging in
  • That easy to setup Single Sign-on
Next to Publish the app
  • On Xcode to Product > Archive to generate the .ipa
  • Select Export and choose Adhoc
  • Next make sure to match the xcode settings to the connected app settings for mobile
  • Select the private app to upload the .ipa file
Get the Private AppExchange from AppExchange
  • Create a listing for the new application
  • Then using your mobile device grab the app from the listing to install it
Watch the dreamforce session here. https://www.youtube.com/watch?v=W3okdu8nJHY
That’s it for the first share.  Watch out for my next post.

Leave a Reply

Your email address will not be published. Required fields are marked *