locked
Live-ID does not Authenticate on CRM 2011 Portal RRS feed

  • Question

  • Hi,
    I have recently installed the Microsoft CRM 2011 Portal SDK.
    I have followed the new instruction on setting up the Windows Live Authentication with the Portal but it seems that the authentication is not working, and I am not sure what could be wrong.
    The web.config files has the following:
    <
    connectionStrings>
    <
    add name="Xrm" connectionString="ServiceUri=http://; Domain=; Username=; Password=" />
    <
    add name="Live" connectionString="Application Id=00000000xxxxx; Secret=xxxxxxxxxxxx" />
    <!--
    <add name="Bus" connectionString="Service Namespace=???; Service Path=???; Issuer Name=???; Issuer Secret=???; Include Exception Detail In Faults=true"/>-->
    </
    connectionStrings>
     
    I also have what I think is the correct config for the User in CRM:
     
    I am also part of the Portal Administrators group and valid access to the CRM system.
     
    Any ideas of where to look why my LiveID won't be able to log me in.
     
    Kind Regards
    Francois

    Wednesday, November 16, 2011 12:29 PM

All replies

  • Is those your real connection strings in your web.config?  The connection string to your CRM will not work, and the Live ID doesn't look like it is configured either.  The documentation outlines the entire process, including the invitation model.  Live ID does not disclose the email address, so please do not manually enter a Live ID email address in the username field, nor turn on the Logon enabled flag manually (this will be handled by the LiveID.axd authentication handler).  It looks like you have the invitation code seeded correctly and have specified a challenge and response properly.  You will have a workflow in your CRM that will generate an invitation email for the visitor.  What is the link in that email?

    There are also a few opportunities for making mistakes in the Live ID application registration process.  I would also like to see screenshots of those registration pages - feel free to obfuscate the secret key and other confidential data, but leave the urls intact as I need to observe them.  I would also need to know what the domain name is of your website.


    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    • Proposed as answer by Maria Joaquin Monday, November 28, 2011 5:59 PM
    Wednesday, November 23, 2011 7:30 PM
    Moderator
  • Hi Shan,

    I removed the conenction details but they are as per below with correct Application ID and Secret as well  as a CRMweb admin user and password.

    I have tested the URL from external and from external the service is avaliable.

    The email link is as follows:

    http://portal.dovetail.co.za/login?InvitationCode=123456789

    add name="Xrm" connectionString="ServiceUri=http://crm.dovetail.co.za/Dovetail; Domain=Dovetail.co.za; Username=crmwebadmin_user; Password=somepassword" />

    add name="Live" connectionString="Application Id=000000004C0xxx; Secret=keyinserted" />

    If you require any other information please let me know.
    Regards
    Francois

    Thursday, November 24, 2011 8:04 AM
  • Thursday, November 24, 2011 8:12 AM
  • Thursday, November 24, 2011 8:13 AM
  • That all looks good.  So clear out your username and enable logon for that contact.  reset your website just to make sure it is not cached.  Then click on the invitation link http://portal.dovetail.co.za/login?InvitationCode=123456789

    The invitation code has to match up with an unexpired invitation code in your CRM for a contact that does not have a username and is not enabled for logon yet.  When you click on this link, you should then click on thelive id signin link, sign in with a Live ID.  From there, the portal will redirect to your /LiveId.axd authentication handler, and that will locate the user account with the invitation code and redirect you to a challenge/response page of which it will prompt you the value in the password question field and you have to provide the password answer.  Assuming that is correct, your Live ID UUID will be placed into the contact record and logon enabled will be set to true.

     


    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    Thursday, November 24, 2011 3:01 PM
    Moderator
  • Hi Shan,

     

    Thanks for the help I am now able to authenticate and see the user details as per below.
    I however are not able to do anything, after logging in it verified my security question and then took me back to a login page.

    I assigned myself the portal administration web role but it seems that I am not logged in.

     

    Monday, November 28, 2011 12:15 PM
  • It looks like it is working properly now.  The important part is that you now have your Live ID UUID stored in the username field.  If you changed your membership to the portal administration web role and have not set up cache invalidation, you won't see the changes immediately.  I would recommend recycling the application pool.  If you can then log in and use the CMS, then things are working properly.  If you have changed the name of the portal administation role in CRM, you will also have to change the name of the role in your web.config as well.  This is only a requirement for the free portals, not the commercial ones from Adxstudio.

    To get cache invalidation working, please ensure you have a web notification url registered in CRM (Settings | Extensions | Web Notification Urls).  Add a record with a url of http://portal.dovetail.co.za/Cache.axd.  Also make sure that the plugins in CRM are activated.  This will ensure that when CRM data changes, your portal will get suitable cache invalidation notices where it will remove any cached data from memory that has any dependency on what is changing in CRM.

    For development purposes, you will probably also like to have a cache reset toolbar link.  See the following page on how to set this up: http://community.adxstudio.com/Default.aspx?DN=ff663ebf-1a78-4afc-a8d1-19c3e171dddf


    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    • Proposed as answer by Maria Joaquin Monday, November 28, 2011 5:59 PM
    Monday, November 28, 2011 3:40 PM
    Moderator
  • Hi Shan,

     

    Thanks for the help I am now able to authenticate and see the user details as per below.
    I however are not able to do anything, after logging in it verified my security question and then took me back to a login page.

    I assigned myself the portal administration web role but it seems that I am not logged in.

     

    You cannot vote on your own post

    Hi Francois,

                 I am also trying to integrate customer portal with crm2011 but i couldn't so can you send me detailed solution(screen shots), how to install customer portal and configuration with crm2011.


    Tuesday, April 3, 2012 12:58 PM