Skip to main content

Questions tagged [logout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Single Log Out (SLO) error when logging user out of salesforce community

I have single sign on configured where Salesforce is the SP, as shown below in screenshot and we need to use single log out (SLO) to log the community user out of salesforce and IDP as well. However, ...
Avinash Kaltari's user avatar
-1 votes
1 answer
127 views

We have a requirement where i have to close the browser tab when user logout of Salesforce

We have a requirement where i have to close the browser tab when user logout of Salesforce. How this can be achieved?
GPP's user avatar
  • 1
0 votes
1 answer
343 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
1 vote
1 answer
518 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
  • 192
1 vote
0 answers
185 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
280 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
2 votes
2 answers
2k 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
  • 136k
0 votes
0 answers
171 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
343 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
308 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
760 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
  • 831
1 vote
2 answers
899 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
492 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
2 votes
1 answer
2k 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
1k 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
2 votes
1 answer
1k 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
  • 135
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
388 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
  • 113
4 votes
2 answers
809 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
  • 51
0 votes
0 answers
340 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
4k 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
900 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
18k 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
  • 790
0 votes
1 answer
1k 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
249 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 ...
user669789's user avatar
1 vote
1 answer
2k 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,407
1 vote
1 answer
311 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
1k 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
  • 547
9 votes
0 answers
129 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.7k
4 votes
0 answers
315 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
  • 72.1k
1 vote
1 answer
147 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
7k 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
267 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,847
2 votes
1 answer
139 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,525
2 votes
2 answers
8k 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
8k 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