Skip to Content
Author's profile photo Oliver Kohl

Auto Login Enabled For Good

logo_ignite_Final.gifIn February, I published the post Tales of Mystery and Authentication in which we announced the highly anticipated auto login feature, immediately followed by A Necessary Update On Auto Login just to announce it was disabled again. A couple of issues with the platform dealing with the rising amount of permission checks to be managed and the resulting performance impact made it necessary for us to go back to our office cubes and fix them.

To remind you, the promise of auto login is to get you logged in to SCN automatically at visit without having to click on the login link in the header. In order to achieve this it is relying on an existing authentication session either via checking Remember Me in the login screen or having a browser certificate in place. Tales of Mystery and Authentication has more details on the exact working of this feature.


You may notice that it is close to four months now since A Necessary Update On Auto Login was posted and expectations where to have this fixed much sooner. We used the time to analyse the implementation with the SAP ID Service team and build a more robust, scalable version of auto login. We also improved our load testing framework to simulate the much higher number of authentication requests by removing the dependency to the number of test accounts. In between there was also the SCN Gamification release, which we have been working on in parallel for the whole time, not to mention the SAP ID Service team releasing Social Login via Twitter and Facebook.

That said, since last Monday, auto login has been enabled and we haven’t seen any significant issues since then, which is why I’m confident that auto login will stay with us.

The basic architecture hasn’t changed. We still rely on a cookie called IDS_PassiveLogonDone, as described in Tales of Mystery and Authentication. Cookie handling can be hard with the client side browser and all its modern extensibility options in place. In case you see auto login not working as expected on your side, please head over the the SCN Support space and let us know. Feel free to leave a comment here and let us know how it is working for you.

Oliver

Assigned Tags

      44 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Matthias Steiner
      Matthias Steiner

      Works like a charm so far... thanks for keeping as updated Oliver!

      Author's profile photo Steve Rumsby
      Steve Rumsby

      Yup, works fine for me too. And it also works perfectly in the Chrome browser on Android devices, now that the browser supports certificates.

      Steve.

      Author's profile photo Former Member
      Former Member

      It was very useful

      Author's profile photo Steve Rumsby
      Steve Rumsby

      I have had one instance today of not being auto-logged in, but that was after being auto-logged out. I'm guessing the two are related.

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Thanks for the update, Oliver!

      Works for me too, although for some reason I'm getting logged out without any notice sometimes - only find out when trying to post a comment. Is there a timeout limit?

      Author's profile photo Nicolas Busson
      Nicolas Busson

      Thanks a lot for this long-awaited functionality. It's working great!

      I guess there are at least a couple of ideas posted on ideas.sap.com that will no longer have the status "submitted" then...

      😉

      See:

      1. https://ideas.sap.com/ct/ct_a_view_idea.bix?c=8A060447-ED55-41EB-905E-C077161D66AC&idea_id=64249AF2-5B3C-4CA6-95BE-54D91B4629F2 by Uwe Fetzer
      2. https://ideas.sap.com/ct/ct_a_view_idea.bix?c=8A060447-ED55-41EB-905E-C077161D66AC&idea_id=23F147CE-2E2E-4CFD-BACF-3AFCAB6E140E by  Pascal Bellerose 
      Author's profile photo Jeanne Carboni
      Jeanne Carboni

      Thanks for pointing those out, Nicolas!  Oxana Noa Zubarev is our point person for SCN ideas in Idea Place. I'm sure she's already working on it.

      Author's profile photo Former Member
      Former Member

      Hi Nicolas,

      The status for these ideas changed to delivered. Thank you Nicolas!

      Special thanks to

      Uwe Fetzer and

      Pascal Bellerose

      for originally posting these ideas!

      Regards,

      Oxana

      Author's profile photo Jürgen L
      Jürgen L

      I actually feel bad in not posting an enthusiastic comment like the previous speaker,

      But almost at the same time SCN  started with  an issue I reported here:

      Synchronization issues? how to mark a discussion permanently as read?

      Today it happened again that all discussions showed up with 1 hour difference in Activity and communications stream, while I could see them already in the forum contents page

      Is it certain that this is not linked to each other?

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Jürgen,

      this isn't related at all. Some issue with our so called Activity Engine. We are working on it.

      Best,

        Oliver

      Author's profile photo Jürgen L
      Jürgen L

      Thanks  for the update.

      Now I can put my mind on rest and enjoy the auto login 🙂

      Author's profile photo Former Member
      Former Member

      Earlier Today, couple of hours ago, I was logged off after maybe 10 minutes of inactivity. In order to login again I had to press the Login link in the header twice. Just in case you are not aware of the issue. I have a SMP certificate which I use to login.

      Author's profile photo Steve Rumsby
      Steve Rumsby

      Over the last couple of days I too have had instance where auto-login didn't work. Sometimes on my Mac with Chrome browser, sometimes on Android phone/tablet with Chrome. In all cases I have a login certificate.

      In fact, right now I have my Nexus 7 tablet working correctly with auto-login and my Nexus 4 phone not. Very odd.

      Steve.

      Author's profile photo Moya Watson
      Moya Watson

      Oliver Kohl is my hero.

      Author's profile photo Annie Chan
      Annie Chan

      Noticed the auto-login today and works well at my end. Thanks for resolving this.

      Author's profile photo Former Member
      Former Member

      Auto-login works flawlessly - using Safari on OSX 10.8.3 - thanks!

      Author's profile photo Laure Cetin
      Laure Cetin

      Yay! This is such great news. Thanks Oliver.

      Author's profile photo Nigel James
      Nigel James

      Thanks Oliver. I tried to break it but I stayed logged in. YES!

      Author's profile photo Julien QUESTER-SEMEON
      Julien QUESTER-SEMEON

      Works great for me. Small details make huge differences (in the adoption of a tool). Thanks!

      Author's profile photo Former Member
      Former Member

      Thanks for update. Works fine for me too.

      Author's profile photo Jansi Rani Murugesan
      Jansi Rani Murugesan

      It is very nice Oliver Kohl!! its working for me... and indeed saves lots of my time on login .. thanks a ton!

      Regards,

      Jansi

      Author's profile photo Kumud Singh
      Kumud Singh

      Thanks Oliver! I have been enjoying all your related blogs about SCN.

      I am wondering if the issue, that when I click on a wiki link from a blog/document my login becomes 'Welcome Guest',  is already being looked upon/reported? Thanks.

      Regards,

      Kumud

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Kumud,

      this is a known issue. The whole SSO stack has changed massively over the last couple of years and the Wiki hasn't been upgraded to work with the new stack yet. There is an upgrade scheduled for later this year, which should take care of it.

      Best,

        Oliver

      Author's profile photo Former Member
      Former Member

      Oh finally. I was really waiting for this feature.

      Author's profile photo Former Member
      Former Member

      Finally....!!!!

      Auto login.... 😯

      Author's profile photo Former Member
      Former Member

      thanks

      🙂 😆 🙂

      Author's profile photo Rick Bakker
      Rick Bakker

      Mostly auto-login works, but not always. Just had it not work on Windows 7,

      Chrome Version 27.0.1453.110, where I had been previously logged in to SCN but had closed that tab and re-opened one a few hours later.

      Author's profile photo Rick Bakker
      Rick Bakker

      Same with Windows 8 (as above with Windows 7). Maybe it's because of Chrome?

      Don't get me wrong, it's a great improvement!

      ETA: I tried it again today (on Windows 7 and Chrome). Closed the tab and re-opened it 61 minutes later, no problem. Closed it again and tried again 96 minutes later and there was no auto-login.

      regards

      Rick

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Rick,

      I would assume you triggered the Remember Me checkbox when logging in via username/pw right? Do you see the IDS_autoLoginChecked cookie in FF after the login? If you delete it manually does it work then?

      If this issue reproducible, please open a thread in the SCN Bug Reporting [Read-only] space.

      Best,

        Oliver


      Author's profile photo Rick Bakker
      Rick Bakker

      G'day Oliver,

      I'm still trying to figure out what "FF" is but I did locate that cookie and delete it and it does indeed seem to have made a difference. I killed the tab in Chrome and returned nearly 2 hours later and I got logged in automatically. Great! This was on Windows 7, by the way.

      Thanks, good work in getting this fixed.

      regards

      Rick

      Author's profile photo Former Member
      Former Member

      Rick Bakker wrote:

      I'm still trying to figure out what "FF" is...

                         

      Firefox maybe?

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Firefox indeed it is!

      Author's profile photo Kavindra Joshi
      Kavindra Joshi

      HI Oliver ,

      Is this feature also available as service ? Can I launch the login feature from my any blog etc ?

      Regards,

      Kavindra

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Kavindra, not sure I understand correctly. Do you mean your blog here on SCN?

      Author's profile photo Kavindra Joshi
      Kavindra Joshi

      Hi Oliver ,

      I mean the log in functionality could be reused ? If I want to call it from somewhere outside SCN.

      Regards,

      Kavindra

      Author's profile photo Former Member
      Former Member

      Unfortunately the auto-login doesn't work for me... I have to click on the login button before it logs me in (without asking for username and password)... It lasts for a short while, but if I close all sessions and start again later then it requires me to click the login button again.

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi David,

      there is a session cookie IDS_autoLoginChecked which if present will prevent the auto login. Closing the browser should delete the cookie, but you can try to do it manually.

      Did you try different browsers already?

      Best,

        Oliver

      Author's profile photo Jeanne Carboni
      Jeanne Carboni

      I had an issue with auto login as well.  Logged me out over night. Had to click login to get back in.  Seems to be working sporadically.

      Needs more tweaking???

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Jeanne,

      based on the overall feedback I strongly disagree with auto login working sporadically. It works in between certain boundaries and we are constantly improving the service. If you see a specific use case not working for you, please file a bug report.

      Thanks,

        Oliver

      Author's profile photo Former Member
      Former Member

      I got a new SAP ID from a new company...yet I had saved a ton of contents and bookmarks under the old ID....Understanding the profile merging is still a challenge for SCN, can I choose not to have auto-login ?  I need to continue my old profile....Thanks.

      Author's profile photo Oliver Kohl
      Oliver Kohl
      Blog Post Author

      Hi Peter,

      please contact SCN Support. Switching your user ID isn't an issue at all. Just make sure you don't create any content on the new account. Support will help you with the account switch.

      sapnetwork@sap.com

      Best,

        Oliver

      Author's profile photo Bret Halford
      Bret Halford

      The autologin is not working for the Wiki section of SCN

      I log in to SCN

      Navigate to the SCN welcome page http://scn.sap.com/welcome

      Scroll down to the bottom left and click on the "Wiki" link.  (still logged in)

      I'm now on Moshe's "One Big Happy Family: The New SCN and the Wiki" blog (still logged in)

      Click on the "click here" link at the start of the blog.

      Now I'm on the SCN Wiki Homepage http://wiki.sdn.sap.com/wiki/display/WHP/Home

      but no longer logged in, I'm "guest" until I click on "login" again.

      -bret

      Author's profile photo Dimtar A. Dimitrov
      Dimtar A. Dimitrov

      thanks

      Author's profile photo Former Member
      Former Member

      Thanks, very useful.

      Arvi nd