SharePoint webpart with button to auto-login to 3rd party website

Posted by JCdowney on Stack Overflow See other posts from Stack Overflow or by JCdowney
Published on 2010-05-05T13:57:14Z Indexed on 2010/05/06 7:38 UTC
Read the original article Hit count: 222

I have been tasked with creating a SharePoint 2007 webpart that logs the user directly into our website (which uses forms authentication). Most likely the username and password will be same in the SharePoint account as in our website.

Ideally we would like it to be fully integrated in that the webpart looks up the SP login & password, somehow encodes that using SHA1, MD5 or similar encryption, then passes that along to our login page on the query string. However given we have little experience with SharePoint, and that it's probably impossible to programmatically access the SP username/password from a webpart we realize this isn't very likely to be possible and if so would probably require a lot of development time.

Another option would be to load a login form from the website within an iframe in the webpart, which would show the login & password first but store a "remember me" cookie after the first login, and on each subsequent load display just a button that logs them in directly using the cookie.

Has anyone done something similar before? I'm in over my head, any guidance would be much appreciated! :)

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about authentication