Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Single SignOn Issue

  Asked By: Reynaldo    Date: May 03    Category: Sharepoint    Views: 1068

I am Hegde, working on sharepoint portal 2003 development. I need a
small tips on Poul's sample regarding of single sign on. I have an
application. Now I want to integrate with SPS 2003. I believe I
need to
do single sign-on right? I am new to sharepoint. So seeking some
SingleSignOn. Your article gives me a great tip! When I try to
integrate with sharepoint I could not do that.

If you can help me or give some link to do the same with sharepoint
application that would be really great!



7 Answers Found

Answer #1    Answered By: Larry Gonzales     Answered On: May 03

Anybody worked on sharepoint  Single SignOn for Enterprise Application
integration? Please if you have any ideas how to connect my application from
sharepoint without asking any login credentials, please give some

Answer #2    Answered By: Hugo Park     Answered On: May 03

I already made the setup exactly as microsoft
documented. and what exactly I am looking is how to program using
Microsoft.Sharepoint.Portal.SingleSignon. Is this requires BizTalk adapters
to connect external application? or What kind of connectable webpart I need
to do? if you can send a piece of code about webpart to connect application,
that would be really great!

Answer #3    Answered By: Sterling Allison     Answered On: May 03

I don't currently have SSO configured so this code compiles but I'm
unable to test whether it actually works as needed ;-).

using System.Web.UI.WebControls;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebPartPages;
using Microsoft.SharePoint.Portal.SingleSignon;

namespace wpSSO1
/// <summary>
/// Description for WebPart1.
/// </summary>

public class WebPart1 :
private string Username;
private string Password;

string [] InputCredentials;

private void Authenticate()


Credentials.GetCredentials(UInt32.Parse("1"), "ApplicationName", ref
Username = InputCredentials[0];
Password = InputCredentials[1];

catch(SingleSignonException ex)
if (ex.LastErrorCode ==
string AuthUrl =
SPEncode.HtmlEncode("Logon: <a
href=\"" + AuthUrl + "\"</a>");


protected override void RenderWebPart(HtmlTextWriter



So this code tries to authenticate against ApplicationNAme and if it
fails, we'll show the user a logon-link. I'm not aware that you'd need
BizTalk Adapters for this to work. Hope this helps.

Answer #4    Answered By: Jessie Burton     Answered On: May 03

Regarding of Single Sign On, I just tried this code and modify but not able
to register as safe control. Same kind of sample from sdk SSOSample also I
tried to do but got the same as unable to register as safe control. I know
how to register the webpart. but these webparts only give the error...

Answer #5    Answered By: Kristopher Morales     Answered On: May 03

If the web part is under /bin, it operates under safe and therefore you
need to use Code Access Security. Otherwise generate a strong name with
sn.exe, and drag-and-drop it to GAC.

Answer #6    Answered By: Marquis Ortega     Answered On: May 03

I did the same as sn.exe and drag n drop GAC method. I have created strongly
named assemply also. still giving not safe error.

Answer #7    Answered By: Javier Hawkins     Answered On: May 03

I reckon it also requires you to modify the security policies
(WSS_Minimal or WSS_Medium). Add the <SecurityClass
Name="SingleSignonPermission">-tag and also <PermissionSet> with proper
parameters. Iisreset after this, of course. Hopefully that satisfies the
security requirements ;).

Didn't find what you were looking for? Find more on Single SignOn Issue Or get search suggestion and latest updates.