As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [logout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

log-in / log-out / log-in SDK mobile push: duplicated contacts

Im dealing with the following use case and I would like to know what does in happens in the All contacts table. I have Delay registration: false User X install the App without doing the log-in User ...
Sofia's user avatar
  • 1
0 votes
1 answer
36 views

Multiple users and one device, logged in/logged out use cases for contact key registration

Im dealing with the following use case for 3 different users on a single shared device: User A installs the app and logs into the app User A logs out User B starts using the app in guest mode without ...
SFguy's user avatar
  • 1
0 votes
1 answer
51 views

Routing error on NavigationMixin logout action

I am developing an Experience cloud site with an LWR template. I am trying to create a logout button using the standard code for it: this[NavigationMixin.Navigate]({ type: "comm__loginPage&...
senoron's user avatar
  • 72
1 vote
0 answers
96 views

Single Logout (SLO) API - 400 Bad Request - Illegal character VCHAR='='

This is as part of Single Logout (SLO) implementation. The need is to logout Salesforce Experience Cloud Site when user logsout from java based application. To implement this, below Salesforce ...
Vasanth Subramanian's user avatar
0 votes
1 answer
76 views

Matching SessionId from SessionManagement Class to SessionKey from LogoutEventStream

I'm trying to execute some Apex in a LogoutEventStream trigger that checks against the user's sessionId (SessionManagement.getCurrentSession().get('SessionId'), however the SessionKey field provided ...
Tony Kirumba's user avatar
0 votes
0 answers
140 views

MobileSDK for Ios: Force user to login and re authenticate after logout

I wonder following fix is right or not. Develop environment: Salesforce MobileSDK 8.3 for iOs Login flow: user-agent flow After enable enhanced domain for salesforce Sandbox, when user log-out it's ...
hhtk12's user avatar
  • 11
0 votes
0 answers
128 views

Logout re-enter without input user's credential

I use Mobile SDK 8.3 to create iOs application. After updated to Winter'23 and enable Enhanced Domain setting for Sandbox, logout flow not run as expected. when click on the logout button, the screen ...
hhtk12's user avatar
  • 11
2 votes
2 answers
683 views

How to logout from a Digital Experience (AKA Community) using LWC?

There are multiple posts about using URLs of this nature: .../secur/logout.jsp?retUrl=... e.g. how to logout from lightning community to logout. And for LWC, there are these functions: import ...
Keith C's user avatar
  • 134k
0 votes
0 answers
97 views

Save Custom logout url through Apex code

In Setup >> Security Controls >> Session Settings >> Logout Page Settings. System Admin can define Logout Page URL. Can we set this via Apex Code or Metadata API ?
Ashish Narang's user avatar
1 vote
1 answer
189 views

Internal salesforce.com error while trying to access trigger.new context variable

I have created a trigger on the LogoutEventStream object, to perform the user logout-related functionality. When the user tries to log out from the application by clicking on the logout button, it is ...
Tania's user avatar
  • 11
1 vote
0 answers
161 views

External application integration with Salesforce... single logout?

We have an external website that uses our Salesforce community as an identity provider. When a user clicks sign in on the external site, it redirects to our community login page in Salesforce and logs ...
Ryan Werner's user avatar
-2 votes
1 answer
345 views

Salesforce Single Logout (SLO) configuration with multiple relying party

In one of the Salesforce implementation I am working on, a single Connected App is being used for Single-Sign-On (Community users) for multiple relying parties (using OpenId protocol). SSO is working ...
LakhanP's user avatar
  • 731
1 vote
2 answers
648 views

Capture session timeout event

We have a requirement, where salesforce is an identity provider for the external system(using SAML). So when a user logouts of salesforce, an external system should be notified. The connected app ...
Ranjit P's user avatar
1 vote
1 answer
259 views

Can we clear the contact key when logging out?

It is possible to clear and remove the association of that contact key with that particular device when the user logs out? What's the recommended approach to avoid having the notifications sent to ...
douglas.iacovelli's user avatar
1 vote
1 answer
1k views

Post-logout redirect in OpenID Connect

When I log into my application with Salesforce as OpenID Connect Provider (OP), I am able to do so. But, when I try and log out of my application, I am logged out of Salesforce and then redirected to ...
Spencer Stantis's user avatar
2 votes
1 answer
750 views

SAML - Triggering Single Logout (SLO) when session times out at the identity provider

Let's say I have Saleforce set up as an Identity Provider with a session timeout of 15 minutes. I set up a connected app with SAML and SLO. I use SSO to access a connected app and start working only ...
Fernando Gavinho's user avatar
1 vote
1 answer
975 views

SSO with Salesforce and Azure AD - disable single logout

I've started playing with Salesforce and configuring SSO to work with our sandboxes. So far so good, and logins can happen without issue. However, I'm running into a bit of an issue when a user logs ...
Evan M.'s user avatar
  • 125
2 votes
1 answer
1k views

Salesforce as identity provider - implementing Single Logout (django + pysaml2)

Related question: https://stackoverflow.com/questions/47293940/sp-initiated-single-logout-not-working-with-salesforce I'm implementing single-sign-on service using Salesforce as identity provider. My ...
Pavlo Kovalov's user avatar
0 votes
1 answer
318 views

How do I add a LogoutEventStream trigger to a managed package?

I have added a LogoutEventStream trigger to my application. It works fine in a developer org, but I can't add it to my package. On the packaging org it appears in the Apex Triggers list like this: ...
FatalFlaw's user avatar
  • 103
3 votes
2 answers
550 views

OpenID Connect single logout

I have a connected application (web site) that is using Salesforce as an authentication provider (OpenID Connect). And I'd like the logout on my site to work as a "single logout" - it should also log ...
Blob's user avatar
  • 41
0 votes
0 answers
200 views

Session timeout and session valid discrepancy

I have salesforce on a TV as a Dashboard and right now I'm having troubles with the session. I set my configuration for 24 hours timeout on Session Settings, for the whole org, but if I log and look ...
Tomás Kroth's user avatar
0 votes
2 answers
3k views

Community logout page redirects to Salesforce.com homepage instead of custom URL

I have setup a custom logout URL for my Community via Communities > Worksspace > Administration > Login & Registration > Logout. When I press the logout URL (which is /secur/logout.jsp) it ...
Deployment Failure's user avatar
0 votes
1 answer
807 views

Single Log Out ADFS

Single logout is not working with Microsoft ADFS 2.0. Any idea does salesforce supports it, Relay partner is created as per guide
Neeraj Bhatt's user avatar
4 votes
3 answers
15k views

how to logout from lightning community

We're currently using this template: Customer Account Portal Spring ’18 What I want to happen is simple: from my lightning component's controller, I should be able to: logout from the current ...
SamuelDev's user avatar
  • 780
0 votes
1 answer
938 views

Single Logout (SLO) Okta

Has anyone gotten Single Logout to work with Okta as an IdP. I am getting a 403 error when I logout from Salesforce. This is the url I end up at: ../my.salesforce.com/saml/LogoutRequest
Bryan Anderson's user avatar
0 votes
1 answer
205 views

How to send user id details in connected app logout URL

I have configured my external web application as connected app. It works in SF. When I logout from Salesforce, I want to send logout notification to my web application. It calls my logout URL provided ...
Sabarish's user avatar
  • 175
1 vote
1 answer
1k views

Logout Timer in Marketing Cloud/Exact Target

Can I change the timer that SFMC has for logging out? It seems to be too frequent. Very basic question, but also a very basic annoyance!
Tom Callahan's user avatar
  • 1,397
1 vote
1 answer
240 views

Query last user activity

We are writing a custom ending session code for our Site.come community. What we want to do is to query trough Apex the datetime of the last activity of the user logged in. There is in Salesforce an ...
L.benedettini's user avatar
2 votes
1 answer
802 views

Salesforce Customer Community and EC (error code) 301 Redirect

We are working on a Napili Customer Community. Sometimes I find that the site is redirecting to a ec-301 page: It seems to occur if I shut my laptop with the site open, and then come back the next ...
ATA1k's user avatar
  • 537
9 votes
0 answers
119 views

Securely logging out as any user

When using the functionality where the system admin can log in as any user, I noticed that during log-out, there are two different responses that I can get back from /secur/logout.jsp. The most common ...
martin's user avatar
  • 12.5k
4 votes
0 answers
288 views

SAML: Differentiate between logout of external Community versus internal user

We have an org + custom developer portal + Customer Community where: Org does not use MyDomain; Community does use custom Domain forums.foo.com # TYPE OF USER LOGIN TARGET ...
cropredy's user avatar
  • 67.6k
1 vote
1 answer
123 views

Security Review expectations on Logout Configuration

Our app did not pass Security Review because "The logout function doesn't perform correctly the removal of session data server-side." Our application uses the popular Devise gem (Ruby on Rails) to ...
Joshua Reback's user avatar
-1 votes
1 answer
2k views

How to logout an user from connected app? [duplicate]

Note: 1) I dont want to use /secur/logout.jsp as it will log me out from all the active salesforce sessions. 2) I also dont want to use prompt=login, because if an user has a parallel active session, ...
Rakesh D's user avatar
2 votes
1 answer
6k views

How to logout an user from the connected app?

NOTE: I am not interested in calling /secur/logout.jsp since it ends all the active salesforce sessions. I am developing a web application that is registered on salesforce as a connected app, so I am ...
Rakesh D's user avatar
0 votes
2 answers
228 views

Using ngforce for logging out user

I am using force ng library for one of my hybrid apps, but issue is I cannot find any method to log out users so that different credentials can be used. Any idea? Thanks
SEuser's user avatar
  • 1,777
2 votes
1 answer
117 views

Insert a record in custom object on User Logout

I want to insert a record in custom object whenever a user logout from the salesforce. Is there any thing available to track this and create a record as soon as user logouts?
Pankaj's user avatar
  • 2,515
2 votes
2 answers
7k views

Is there a way to force all users to log out before a deployment?

The title pretty much covers it - is there a way to force all users to log out before a deployment? I know we can use a variety of techniques to prevent new logins, but I want everyone out of the pool ...
user avatar
3 votes
1 answer
1k views

Is it possible to customize the standard Logout link in Salesforce?

Is it possible to customize the standard Logout link in Salesforce without creating custom visualforce pages? The only issue is, I would like the users to be redirected to a custom web page as opposed ...
Lightning Evangelist's user avatar
7 votes
2 answers
7k views

Using SOQL, how can I tell which users are CURRENTLY logged into Salesforce

I know, we can query LoginHistory to find out who has logged in today - but that doesn't tell us who logged in and is STILL logged in ... Thanks!
user avatar