locked
FormLogin.xml with two application types RRS feed

  • Question

  • I am having another issue with FormLogin.xml. I am attempting to add a second application type hosted on a second trunk and no matter what I do I can not get user credentials to flow to the second form.

    I found a reviewed this post:

    http://social.technet.microsoft.com/Forums/en-US/forefrontedgeiag/thread/907b987a-6430-40fe-9f9b-44ec6c50de3b/

    But it was closed and marked as answered even though others had the same issue that I am now seeing.

    The first application works fine and the fields are populated and submitted (Had to create a custom AutoSubmit.js for the inital application) I have added a second application to the FormLogin.xml but no matter what I do it will not populate or attempt to submit the form. At this point I am not concerned with the submit not working but the forms should be getting populated but they are not. Here is my FormLogin.xml:

    <WHLFILTFORMLOGIN>

    <!******************************>
    <!---Registration Application--->
    <!******************************>

    <APPLICATION_TYPE>Regist</APPLICATION_TYPE>
    <USAGE description="form_login">
    <PRIMARY_HOST_URL>.*register\.aspx*</PRIMARY_HOST_URL>
    <SCRIPT_NAME source="data_definition">FormLoginSubmitStandard</SCRIPT_NAME>
    <USER_AGENT>
    <AGENT_TYPE search="group">all_supported</AGENT_TYPE>
    <POLICY>multiplatform</POLICY>
    <SCRIPT_NAME source="data_definition">FormLoginHandler</SCRIPT_NAME>
    </USER_AGENT>
    <LOGIN_FORM>
    <NAME>aspnetForm</NAME>
    <METHOD>POST</METHOD>
    <CONTROL handling="dummy_value">
    <TYPE>USER_NAME</TYPE>
    <NAME>ctl00$masterPlaceHolder$ID$Number</NAME>
    <DEF_VALUE>*******</DEF_VALUE>
    </CONTROL>
    <CONTROL handling="dummy_value">
    <TYPE>PASSWORD</TYPE>
    <NAME> ctl00$masterPlaceHolder$ID$PIN</NAME>
    <DEF_VALUE>*******</DEF_VALUE>
    </CONTROL>
    <CONTROL handling="real_value">
    <TYPE>SUBMIT</TYPE>
    <NAME> ctl00$masterPlaceHolder$ID$RegisterButton</NAME>
    <DEF_VALUE>Register</DEF_VALUE>
    </CONTROL>
    </LOGIN_FORM>
    </USAGE>
    </APPLICATION>

    <!*********************>
    <!---CRM Application--->
    <!*********************>

    <APPLICATION_TYPE>CRMApp</APPLICATION_TYPE>
    <USAGE description="form_login">
    <PRIMARY_HOST_URL>.*login\.aspx*</PRIMARY_HOST_URL>
    <SCRIPT_NAME source="data_definition">FormLoginSubmitStandard</SCRIPT_NAME>
    <USER_AGENT>
    <AGENT_TYPE search="group">all_supported</AGENT_TYPE>
    <POLICY>multiplatform</POLICY>
    <SCRIPT_NAME source="data_definition">FormLoginHandler</SCRIPT_NAME>
    </USER_AGENT>
    <LOGIN_FORM>
    <NAME>aspnetForm</NAME>
    <METHOD>POST</METHOD>
    <CONTROL handling="dummy_value">
    <TYPE>USER_NAME</TYPE>
    <NAME>ctl00$masterPlaceHolder$myLogin$UserName</NAME>
    <DEF_VALUE>*******</DEF_VALUE>
    </CONTROL>
    <CONTROL handling="dummy_value">
    <TYPE>PASSWORD</TYPE>
    <NAME> ctl00$masterPlaceHolder$myLogin$Password</NAME>
    <DEF_VALUE>*******</DEF_VALUE>
    </CONTROL>
    <CONTROL handling="real_value">
    <TYPE>SUBMIT</TYPE>
    <NAME> ctl00$masterPlaceHolder$myLogin$LoginButton</NAME>
    <DEF_VALUE>Log In</DEF_VALUE>
    </CONTROL>
    </LOGIN_FORM>
    </USAGE>
    </APPLICATION>
    </WHLFILTFORMLOGIN>

    The second applicaton, CRMApp, is the original application and it works fine. Adding the second application type for "Register" is the one having issues. Again, no amount of coaxing will populate the inputs on the form. I have verified the form name and input names at least a dozen times. I am also watching the code using Fiddler and the FormLoginOnLoad function is never being inserted into the second app (Register) but is working perfectly on the original app (CRMApp). I have even tried switching which app comes first in the FormLogin file and removing the one app that is working from the FormLogin. It breaks the original, but makes no difference on the second app.

     

    Has anyone configured two different applications on different trunks and modified the FormLogin.xml file and gotten both to work with the one file?


    Steve Angell - IDA Consultant (http://www.InfraScience.com)

    Tuesday, September 27, 2011 8:35 PM

All replies

  • Hi Steve,

     

    I haven't tried what you are trying to do and i'm not that experienced in customized formlogin.xml but this doesn't seem all right to me.

    <PRIMARY_HOST_URL>.*register.aspx*</PRIMARY_HOST_URL>

    The primary_host_url is specified with regex so you have to slash out the dot. Like in your CRM application config. Maybe it's just a typo but if it's not i would try something like: <PRIMARY_HOST_URL>.*register\.aspx</PRIMARY_HOST_URL>

    Hope it helps :)

     

    Regards

    Joakim

    Tuesday, September 27, 2011 9:04 PM
  • Oddly some of my code was getting stripped when submitting my post. I think I have corrected it now but it should read:

    <PRIMARY_HOST_URL>.*register\.aspx*</PRIMARY_HOST_URL>

    Good catch but unfortunately it was incorrect in the post. This same format works perfectly for the second app and the only real difference here is the name of ther aspx file.


    Steve Angell - IDA Consultant (http://www.InfraScience.com)
    Tuesday, September 27, 2011 9:12 PM
  • I thought so but couldn't ignore it.

    Btw, might seem like a stupid question but why the * at the end?

    /Joakim

    Tuesday, September 27, 2011 9:22 PM
  • Wel, I have tried it with and without, but the reason it is in is that the developers have the page so that it loads with something like Register.aspx?Env=UAG

    So I need the trailing *


    Steve Angell - IDA Consultant (http://www.InfraScience.com)
    Tuesday, September 27, 2011 9:29 PM