Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6858673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:11:19+00:00 2026-05-27T02:11:19+00:00

I want to use transport security mode with username/password authentication and ssl, it works

  • 0

I want to use transport security mode with username/password authentication and ssl, it works fine with windows authentication:

<transport clientCredentialType="Windows"/>

I found an article on msdn that explain how to do username/password authentication with transport security mode, but custom http module is required. I am interested why there is no default security mode like:

<transport clientCredentialType="Username"/>

I am fine with message security mode if i need username/password authentication, but if all sites uses https/ssl for authentication there shouldn’t be a problem doing so in wcf.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:11:20+00:00Added an answer on May 27, 2026 at 2:11 am

    The question is wrongly asked. WCF allows using transport security with custom user name / password validation. Transport security modes use standardized authentication modes for given transport protocol and HTTP doesn’t have any standardized “UserName” authentication mode. It has equivalent mode called Basic authentication:

    <security mode="Transport">
      <transport clientCredentialType="Basic" />
    </security>
    

    By default Basic authentication expects Windows account but you can switch validation with custom UserNamePasswordValidator. The problem is that this works only with self hosted services. It doesn’t work when hosting services in IIS. This is why the question is wrongly asked. The problem is not in WCF but in IIS.

    When you host the service in IIS, it takes responsibility for authentication and authentication. Default module for Basic authentication in IIS supports only Windows accounts. That is the reason why you need custom module to use non windows account.

    As @Marc mentioned in comment you can also use TransportWithMessageCredential security mode:

    <security mode="TransportWithMessageCredential">
      <message clientCredentialType="UserName" />
    </security>
    

    In this scenario authentication is not performed on transport protocol. It is part of message (it uses WS-Security’s UserNameToken profile standard). You can again use custom UserNamePasswordValidator and this time it works for both self hosted and IIS hosted SOAP services (SOAP is mandatory requirement).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use SSL using security mode = transport. Can I use it
If I did not want to use ssl and transport security does silverlight 4
I have several WCF wsHttp services using Transport security over an SSL connection. Presently
I want to use Sessions and SSL at the same time so I set
I have been following this tutorial in order to get username authentication with transport
I want to implement charting in SWT and I want to use GC.transform to
So I want to use mod_rewrite to transform: random_name.com/main.php?user=$user into random_name.com/$user (the $user is
I want to transpose a matrix in C, with as little memory use as
I want use this 1 for using Bar code or QR code scanner. I
I want use BYTE_ORDER macro in my Xcode project but i can't because i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.