none
WCF service with digest auth for external user RRS feed

  • Question

  • we know in case of digest auth user credentials is validated against windows active directory. so can't we use digest auth for external client ?

    if we create user id and password for external client in my windows pc then our external client from london office can use our web service and provide their credentials ? would it be possible? if no then tell me the reason. thanks

    Sunday, December 11, 2016 8:13 PM

Answers

  • Hi Mou_kolkata,

    In my option, it is possible. You could refer my reply in another thread ASMX web service with digest auth and validate user credentials against db. In that link, he implements custom IHttpModule to validate Digest Auth for external user, IHttpModule is available in WCF application. You could achieve the same function while hosting WCF in IIS.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Mou_kolkata Tuesday, December 13, 2016 8:31 PM
    Tuesday, December 13, 2016 5:02 AM
  • Hi Mou_kolkata,

    As you known, Http Module does not work under self host, I suggest you try IDispatchMessageInspector, you could refer the link below for more information.

    # What is the WCF equivalent of an HTTPModule?

    http://stackoverflow.com/questions/1478695/what-is-the-wcf-equivalent-of-an-httpmodule

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Mou_kolkata Monday, December 26, 2016 6:03 PM
    Wednesday, December 14, 2016 8:40 AM

All replies

  • Hi Mou_kolkata,

    In my option, it is possible. You could refer my reply in another thread ASMX web service with digest auth and validate user credentials against db. In that link, he implements custom IHttpModule to validate Digest Auth for external user, IHttpModule is available in WCF application. You could achieve the same function while hosting WCF in IIS.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Mou_kolkata Tuesday, December 13, 2016 8:31 PM
    Tuesday, December 13, 2016 5:02 AM
  • when we self host wcf then can't we go for digest auth? if possible then how could validate user credential using http module ?

    because http module does not work when wcf will be host as self host. please guide me. thanks

    Tuesday, December 13, 2016 8:31 PM
  • Hi Mou_kolkata,

    As you known, Http Module does not work under self host, I suggest you try IDispatchMessageInspector, you could refer the link below for more information.

    # What is the WCF equivalent of an HTTPModule?

    http://stackoverflow.com/questions/1478695/what-is-the-wcf-equivalent-of-an-httpmodule

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Mou_kolkata Monday, December 26, 2016 6:03 PM
    Wednesday, December 14, 2016 8:40 AM