Detecting Login from external site

Posted by Community Admin on 04-Aug-2018 17:48

Detecting Login from external site

All Replies

Posted by Community Admin on 22-Jul-2013 00:00

Is there a way from an external webapp (subdomain, but same domain...not SF based) to ask sitefinity if a user is logged in?

I tried just looking for like "HttpContext.Current.Request.Cookies["FedAuth"]" but it's just never there on the subdomain site, so that clearly won't work :)

Steve

Posted by Community Admin on 23-Jul-2013 00:00

Hi Steve,

Yep, cookies are per domain, not even per sub-domain :) 

We do not have such feature for security reasons - we do not want someone to ping a site and start asking if users are logged in. You can do a small web service tough in the Sitefinity site pass parameters like user/e-mail and it should return true/false if the user is online. Or, the web service can just have..

IList<User> users= SecurityManager.GetLoggedInBackendUsers()

.. and you'll have all online users at once. 

Regards,
Georgi
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 23-Jul-2013 00:00

Yeah I already have a user service...hmm

Now if we implemented claims on the webapp...sitefinity could be the issuer and then the site would just "work" to know the logged in state?

Posted by Community Admin on 23-Jul-2013 00:00

@Georgi,
...well...how the heck would I secure this?

A webreqest from the one site over to sitefinity has ClaimsManager returning IsAuthenticated false...?

EUGH...next meeting I'm gonna see if we can just move the pages into controls and host in sitefinity

Steve

Posted by Community Admin on 29-Jul-2013 00:00

Hi Steve,

Your scenario is very interesting. Our colleague, Svetla Yankova wrote two great articles about: Single Sign On Between Sitefinity and 3rd Party Applications:

I believe, these articles will be helpful.


Regards,
Strahil Strahilov
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 29-Jul-2013 00:00

Nope, won't work...well...too much work on an old app to convert it to claims is the problem

I fixed the underlying problem and just locked sitefinity back down on the webconfig...so we can't use thunder or SDA...

This thread is closed