function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lala Rabari 4Lala Rabari 4 

How to pass custom/dynamic request parameter to salesforce single sign on initialization url?

I am working on implementing single sign on using Salesforce Auth. Providers. I am integrating it with IdentityServer 4 using Open ID connect method.
I have need to pass additional "launch" request parameter to the single sign on initialization url which will then delegate it to the authorization endpoint.
I would like to give example of what i am trying to do: Single Sign-On Initialization URL: https://login.salesforce.com/services/auth/sso/00D6g0/SalesforceSsoPoc
So if i send user to https://login.salesforce.com/services/auth/sso/00D6g0/SalesforceSsoPoc?launch=dyanmic_token then it would redirect user to the authorize endpoint with the launch=dynamic_token parameter. It should look like this: https://myauthprovider.abc.com/authorize?launch=dynamic_token......
Per help guide on salesforce.com i have ability to pass additional query parameter when i define authorize endpoint while configuring the auth. provider. this is great for adding static parameters but i want to pass launch parameter to the authorize endpoint which contains the onetime launch token generated dynamically.
Documentation that i have referred so far but no luck: https://help.salesforce.com/articleView?err=1&id=sso_provider_openid_connect.htm&type=5 https://help.salesforce.com/articleView?id=sso_provider_addl_params.htm&type=5#sso_provider_addl_params_community
Baya AdamBaya Adam
MyArticles is a writer’s community where writers can share their stories all over the world. Signup and share your stories to all over the world. Follow your favorite writers, create groups, forums, chat, and much much more!
 
Bridle TrailsBridle Trails
Bridle Trails is giving the best senior care services (https://kirklandseniorcare.com/). We have a combined 25 years of experience in Geriatric care. 
Shaun GriffingShaun Griffing
Add request parameters to your client configuration URLs as needed. For example, you want to link users in your org to their existing Facebook account and then allow Facebook to request profile access. Add a scope parameter to the Existing User Linking URL. When users go to this URL, they log in to Facebook and your org and receive a request for Facebook to access their Salesforce profile information.

https://www.mypascoconnect.info/
Rogahn BridgetteRogahn Bridgette
For example, you set up a Facebook authentication provider and configure SSO with your site as the relying party. You want to send Spanish-speaking users through a different registration process than Italian-speaking users. So you modify the registration handler and add the expid parameter to your SSO client configuration URL. The registration handler can now detect whether a user comes from the Spanish or Italian version of Facebook. When a Spanish-speaking user signs up for your site with their Facebook credentials, the registration handler records the user’s minimum age. If the user comes from the Italian version of Facebook, the handler doesn’t.

TelltheBell Survey (https://www.tellthebell.mobi/)