none
Setting up custom Login, not getting Meta Data RRS feed

  • Question

  • Custom Login using Transport+msg security.  Just trying to run in local test environment. 

    Getting error message that WCF client can not retrieve meta data.  Think I just need another set of eyes on this:

      <system.serviceModel>
    
          <services>
            
              <service name="MyCompany.TMGR.ServiceTMGR" behaviorConfiguration="TMGRBehavior" >
                 
                  <endpoint address="http://localhost:25000/ServiceTMGR.svc" contract="MyCompany.TMGR.IServiceTMGR" binding="wsHttpBinding" bindingConfiguration="TMGRSecure"/>
                  <endpoint address="mex" contract="IMetadataExchange" binding="mexHttpBinding" />
              </service>
    
          </services>
    
          <behaviors>
          <serviceBehaviors>
              
            <behavior name="TMGRBehavior">
              <serviceMetadata httpGetEnabled="true" />
             
                    <serviceCredentials>
                        <userNameAuthentication
                            userNamePasswordValidationMode ="Custom"
                            customUserNamePasswordValidatorType ="MyCompany.TMGR.Login,MyCompany.TMGR.ServiceTMGR.login"/>
                    </serviceCredentials>
            </behavior>
              
          </serviceBehaviors>
        </behaviors>
          
          <bindings>
              <wsHttpBinding>
                  <binding name ="TMGRSecure" maxReceivedMessageSize="65536">
                      <security mode="TransportWithMessageCredential">
                          <message clientCredentialType="UserName"/>
                      </security>
                  </binding> 
              </wsHttpBinding>
          </bindings>
    
    
          
      </system.serviceModel>

    Wednesday, February 20, 2013 5:51 PM

Answers

  • Another note here, problem is in :

    customUserNamePasswordValidatorType

    I think if someone could elaborate on this element and its usage a bit it would solve my problem. TY

    Edit:  I found the problem.  customUserNamePasswordValidatorType=Type,namespace

    I was using customUserNamePasswordValidatorType = namespace,type

    • Edited by GSS138 Wednesday, February 20, 2013 6:40 PM
    • Marked as answer by Haixia_XieModerator Wednesday, March 6, 2013 8:10 AM
    Wednesday, February 20, 2013 6:05 PM
  • Hi,

    It seems that you have resolved the issue by yourself. As for the two parameters of customUserNamePasswordValidatorType, the first one is the class name that fully qualified by the namespace, the second is the name of the assembly the class is in.

    Best Regards.


    Haixia
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 27, 2013 1:33 AM
    Moderator

All replies

  • Another note here, problem is in :

    customUserNamePasswordValidatorType

    I think if someone could elaborate on this element and its usage a bit it would solve my problem. TY

    Edit:  I found the problem.  customUserNamePasswordValidatorType=Type,namespace

    I was using customUserNamePasswordValidatorType = namespace,type

    • Edited by GSS138 Wednesday, February 20, 2013 6:40 PM
    • Marked as answer by Haixia_XieModerator Wednesday, March 6, 2013 8:10 AM
    Wednesday, February 20, 2013 6:05 PM
  • You should try moving this to the WCF forum: http://social.msdn.microsoft.com/Forums/en-US/wcf/


    -Ian

    Wednesday, February 20, 2013 7:04 PM
  • Hi,

    It seems that you have resolved the issue by yourself. As for the two parameters of customUserNamePasswordValidatorType, the first one is the class name that fully qualified by the namespace, the second is the name of the assembly the class is in.

    Best Regards.


    Haixia
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 27, 2013 1:33 AM
    Moderator