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

Forums / General Discussions / Single sign-on

Single sign-on

4 posts, 0 answered
  1. Engwar
    Engwar avatar
    7 posts
    Registered:
    08 Oct 2007
    31 Oct 2007
    Link to this post

    Our client has an existing site (non-SiteFinity) where users' usernames/logon/profile information are stored. The site that we'll be building is to supplement that original site with some new functionality. 

    We're envisioning something where users will click on link on this existing site that will post their username and a token of some sort to our site which, if it's the first time they've come to the site, will auto-enroll them and automatically enter whatever user data we're provided. We would not prompt the user to enter anything.

    The next time they visit (by clicking on the same link on the other site) we recognize that they are a returning user and simply validate them and let them in.

    Does SiteFinity support this type of functionality?

    Ideally we wouldn't want to have to pre-load users into the database on our side first. We'd like to auto-enroll them when they come in for the first time.
  2. Yasen
    Yasen avatar
    121 posts
    Registered:
    18 May 2013
    01 Nov 2007
    Link to this post
    Hello Engwar,

    You should not have any problems implementing single sign-on in a Sitefinity website as the steps you have to do are quite trivial.

    You have to create your custom login system that logs users automatically (It is not a problem to override the Sitefinity login). You also need to configure the forms authentication for single sign-on as described here. To use the membership functionality of Sitefinity, you have to make the role and membership providers in Sitefinity use the same users data source as your other application.

    If you have any other questions, we'll be glad to help.

    Kind regards,
    Yasen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. btbowden
    btbowden avatar
    1 posts
    Registered:
    27 Aug 2006
    18 Jun 2010
    Link to this post
    I have a sitefinity website and a seperate asp.net web application that I want to use the method for.  This example works fine between two different asp.net web apps but won't work between the sitefinity site and my asp.net app.  Does anyone else have this problem too?  Below is my config file for the asp.net web app.  Both are using .net framework 3.5 SP1.

    ASP.NET web app

     

    <machineKey validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F" validation="SHA1"/>
    <authentication mode="Forms">
        <forms name="Sitefinity" loginUrl="~/Account/login.aspx" protection="All" slidingExpiration="true" timeout="30000" path="/" enableCrossAppRedirects="true"/>
    </authentication>
    <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity">
        <providers>
            <clear/>
            <add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/>
        </providers>
    </roleManager>
    <membership defaultProvider="Sitefinity" userIsOnlineTimeWindow="15" hashAlgorithmType="">
        <providers>
            <clear/>
            <add name="Sitefinity" connectionStringName="DefaultConnection" type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"/>
        </providers>
    </membership>
    <profile defaultProvider="Sitefinity">
        <providers>
            <clear/>
            <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess"/>
        </providers>
        <properties>
            <add name="FirstName"/>
            <add name="LastName"/>
            <add name="Company"/>
            <add name="Title"/>
            <add name="Photo_Hidden"/>
            <add name="Photo" defaultValue="~/Sitefinity/Common/Images/defaultavatar.gif"/>
            <group name="InstantMessenger">
                <add name="IM_Type"/>
                <add name="IM_Value"/>
            </group>
            <group name="Phone">
                <add name="Value"/>
                <add name="Type"/>
            </group>
            <add name="LIMSClientID"/>
            <add name="OnlineDataAccess"/>
        </properties>
    </profile>
    Sitefinity site:
        <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity">
            <providers>
                <clear/>
                <add connectionStringName="DefaultConnection" applicationName="/" name="Sitefinity" type="Telerik.DataAccess.AspnetProviders.TelerikRoleProvider, Telerik.DataAccess"/>
            </providers>
        </roleManager>
        <membership defaultProvider="Sitefinity" userIsOnlineTimeWindow="15" hashAlgorithmType="">
            <providers>
                <clear/>
                <add name="Sitefinity" connectionStringName="DefaultConnection" 
             type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" 
             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" 
             applicationName="/" requiresUniqueEmail="false" 
             passwordFormat="Clear" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" 
             passwordStrengthRegularExpression="" minRequiredPasswordLength="1" 
             minRequiredNonalphanumericCharacters="0"/>
      </providers>
        </membership>
        <profile defaultProvider="Sitefinity">
            <providers>
                <clear/>
                <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess"/>
            </providers>
            <properties>
                <add name="FirstName"/>
                <add name="LastName"/>
        <add name="Company"/>
                <add name="Title"/>
                <add name="Photo_Hidden"/>
                <add name="Photo" defaultValue="~/Sitefinity/Common/Images/defaultavatar.gif"/>
                <group name="InstantMessenger">
                    <add name="IM_Type"/>
                    <add name="IM_Value"/>
                </group>
                <group name="Phone">
                    <add name="Value"/>
                    <add name="Type"/>
                </group>
        <add name="LIMSClientID"/>
        <add name="OnlineDataAccess"/>
            </properties>
        </profile>
    <machineKey
        validationKey= "C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE"
        decryptionKey= "8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
        validation="SHA1"/>
        <authentication mode="Forms">
            <forms name="Sitefinity" loginUrl="~/login.aspx" protection="All" slidingExpiration="true" timeout="30000" path="/" enableCrossAppRedirects="true"/>
        </authentication>
        <authorization>
            <allow users="?"/>
        </authorization>
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Jun 2010
    Link to this post
    Hi btbowden,

    Thank you for using our services.

    Could you please make sure that you have followed the instructions on how to set up Single Sing-On in Yasen's post. I have noticed that you are reusing our membership provider in your asp.net application. Could you make sure that you have configured all sections properly:
    <configSections>
      ...
      <sectionGroup name="telerik">
        <section name="dataAccess" type="Telerik.DataAccess.Configuration.SectionHandler, Telerik.DataAccess" requirePermission="false"/>
        ...
      </sectionGroup>
    </configSections>

    Set the default connection in Sitefinity (if you are using Sitefinity 3.7SP3
    <telerik>
      <dataAccess defaultConnection="DefaultConnection">
        <connections>
          <add name="DefaultConnection" driver="Telerik.DataAccess.Providers.ExtendedSqlServer2005Provider, Telerik.DataAccess"
            connectionStringName="Sitefinity" />
        </connections>
      </dataAccess>

    Also did you implement the principal creation code sampled in the blog post?

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered