Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
SingleSignon, Exceptions and Canaries
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Geoff Taylor  
View profile  
 More options Oct 30 2003, 9:47 am
Newsgroups: microsoft.public.sharepoint.portalserver
From: Geoff Taylor <g.tay...@kainos.com>
Date: Thu, 30 Oct 2003 14:46:00 +0000
Subject: SingleSignon, Exceptions and Canaries
Hi,

how do I go about calling Credentials.SetCredentials () from a web page?
  I've tried the obvious way, and I get the error "Error in the
application", with the LastErrorCode of
SSOReturnCodes.SSO_E_CANARY_VALIDATION_FAILURE and the stack trace:

Microsoft.SharePoint.Portal.SingleSignon.SingleSignonException: Error in
the application.
    at Microsoft.SharePoint.Portal.SingleSignon.SSOCanaryChecker.b()
    at Microsoft.SharePoint.Portal.SingleSignon.SSOCanaryChecker.b()
    at
Microsoft.SharePoint.Portal.SingleSignon.Credentials.SetCredentials(UInt32
ui32Flags, String strApplicationName, Object[] Args)
    at
MyApplication.Web.Clients.SharePoint.MyApplicationCredentials.butSave_Click (Object
sender, EventArgs e)

The line that throws the exception is:

Credentials.SetCredentials (1, "MyApplication", new string []
{tbUsername.Text, tbPassword.Text});

Everything else checks out - the username and password controls exist
and have values, the MyApplication app definition exists etc.  There
really is no interesting code around the page.

The web form itself has a sharepoint:formdigest tag on it, by the way,
but that didn't change the behaviour - the error occurs either way.

I'm guessing that there's something I need to do to provide the proper
context for running the method, but I don't know what it is.  Is it an
impersonation?  Do I need to add a canary (whatever that means)?

Any thoughts or ideas?

                        Geoff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »