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
Sabarish Logeswaran 25Sabarish Logeswaran 25 

How to pass user id in connected app logout URL

I have configured my external web application as connected app. When I logout from Salesforce, I want to send logout notification to my web application. It calls my logout URL provided in connected app, but I want to send user id as part of logout URL, so that I can identify the user who tries to logout & clear all session details from my external application. This value is dynamic based on logged in user.

My Question is : Is it possible to append sales force user id or federated in the logout URL? Because, without current user details, my application doesnt know which user to logout. If possible how to acheive this.
Thanks.
Sabarish Logeswaran 25Sabarish Logeswaran 25
I already tried adding global variables as explained in https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_api.htm. Sample URL : https://mypc.com/sso/logout?sessionid={!API.Session_ID} But, I am getting Error: Invalid Data. Review all error messages below to correct your data. Single Logout URL: Invalid Single Logout URL.
MahmudkMahmudk
Hi Sabarish,

Whats your authentication implementation? Are you using Oauth ?

-
Mahmud
Sabarish Logeswaran 25Sabarish Logeswaran 25
Thanks Mahmud, I am using SF as Id Provider with 'Single Sign On'.