none
WCF with Authentication RRS feed

  • Question

  • Hi everybody.

    Usually I see webservices that receive in parameters/arguments a token or user and password to "authenticate" the service/request

    Is it right?

    Are there a way to authenticate a webservice before the client start to request the methods?

    Or what is the most common way to authenticate web services?

    Tuesday, May 27, 2014 1:48 AM

Answers

  • Hi,

    >>Usually I see webservices that receive in parameters/arguments a token or user and password to "authenticate" the service/request

    Yes, we can use the username or the token to authentication a web services.

    For more information, please try to refer to:
    #WCF Service with custom username password authentication:
    http://www.codeproject.com/Articles/96028/WCF-Service-with-custom-username-password-authenti .

    #Token based authentication in WCF service:
    http://www.nullskull.com/a/10475154/token-based-authentication-in-wcf-service.aspx .

    >>Are there a way to authenticate a webservice before the client start to request the methods?

    Yes, for example, if we use the windows authentication, then when we browser the web service in the IE, then it will let us to enter the windows username and password as following:

    For more information, please try to refer to:
    #Eight steps to enable Windows authentication on WCF:
    http://www.codeproject.com/Articles/36289/steps-to-enable-windows-authentication-on-WCF-Ba .

    >>Or what is the most common way to authenticate web services?

    In my mind, the most common way to authenticate the web service are the windows authentication and username authentication.


    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Eduardo Spaki Friday, May 30, 2014 11:54 PM
    Wednesday, May 28, 2014 2:59 AM
    Moderator

All replies

  • Hi,

    >>Usually I see webservices that receive in parameters/arguments a token or user and password to "authenticate" the service/request

    Yes, we can use the username or the token to authentication a web services.

    For more information, please try to refer to:
    #WCF Service with custom username password authentication:
    http://www.codeproject.com/Articles/96028/WCF-Service-with-custom-username-password-authenti .

    #Token based authentication in WCF service:
    http://www.nullskull.com/a/10475154/token-based-authentication-in-wcf-service.aspx .

    >>Are there a way to authenticate a webservice before the client start to request the methods?

    Yes, for example, if we use the windows authentication, then when we browser the web service in the IE, then it will let us to enter the windows username and password as following:

    For more information, please try to refer to:
    #Eight steps to enable Windows authentication on WCF:
    http://www.codeproject.com/Articles/36289/steps-to-enable-windows-authentication-on-WCF-Ba .

    >>Or what is the most common way to authenticate web services?

    In my mind, the most common way to authenticate the web service are the windows authentication and username authentication.


    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Eduardo Spaki Friday, May 30, 2014 11:54 PM
    Wednesday, May 28, 2014 2:59 AM
    Moderator
  • thank you... this is the exactly info that I needed
    Friday, May 30, 2014 11:55 PM