+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Converting a non-sf forms auth webapp to use sf claims

Converting a non-sf forms auth webapp to use sf claims

6 posts, 1 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    01 Aug 2013
    Link to this post
    Could I take an existing forms webapp...and add in the MS identity bits to tell it to authenticate from sitefinity?...then when the user authenticates into sitefinity they'd be able to get to both subdomains?

    Is this a pain to setup?...or possible?
  2. Boyko Karadzhov
    Boyko Karadzhov avatar
    56 posts
    Registered:
    05 Dec 2016
    06 Aug 2013
    Link to this post
    Hi,

     It should be possible but currently we do not have any sample of how to achieve this.

    Our token is not what Windows Identity Foundation will expect by default and you would probably need to implement a custom token handler.

    Until we have an official sample our token format might change so any custom token handlers should be updated when Sitefinity is updated.

    Regards,
    Boyko Karadzhov
    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
    Answered
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    06 Aug 2013 in reply to Boyko Karadzhov
    Link to this post
    Thanks for the info!
  4. Patrick
    Patrick avatar
    18 posts
    Registered:
    31 Mar 2015
    25 Apr 2015 in reply to Boyko Karadzhov
    Link to this post

    Hello. I need a little bit of help getting the following to work (I feel I'm almost there):

    I took an existing SF app and I configure it to use an external STS. I now want ​to remove the Login widget or page in the app, and have the user redirected to the external STS upon clicking the Login button (so no more login form).  What's the best to way to do this?

  5. Patrick
    Patrick avatar
    18 posts
    Registered:
    31 Mar 2015
    25 Apr 2015 in reply to Patrick
    Link to this post

    Also need help with the following:

    I added a user control widget to the SF app so upon page load it would display the claims passed in by the external STS. However the code shows user is not signed in. Here's the code:

    protected void Page_Load(object sender, EventArgs e)
    {
         ClaimsPrincipal claimsPrincipal = Page.User as ClaimsPrincipal;
         if (claimsPrincipal != null)
     {
      signedIn.Text = "You are signed in.";
      foreach (Claim claim in claimsPrincipal.Claims)
      {
       claimType.Text = claim.Type;
       claimValue.Text = claim.Value;
       claimValueType.Text = claim.ValueType;
       claimSubjectName.Text = claim.Subject.Name;
       claimIssuer.Text = claim.Issuer;
      }
     }
     else
     {
      signedIn.Text = "You are STILL not signed in.";
     }
    }

  6. Patrick
    Patrick avatar
    18 posts
    Registered:
    31 Mar 2015
    25 Apr 2015 in reply to Patrick
    Link to this post
    Never mind about that last post regarding claims not being displayed. I had to use Microsoft.IdentityModel instead of System.IdentityModel to get it to work. It looks like Sitefinity is still using WIF 3.5 and not 4.5, is that correct?
6 posts, 1 answered