Is it possible to use TransportWithMessageCredential with both transport as well as message security?

Can i use configuration like this
<ws2007HttpBinding>
<binding>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Certificate"/>
<message clientCredentialType="UserName"
negotiateServiceCredential="false"
establishSecurityContext="false"/>
</security>
</binding>
</ws2007HttpBinding>
This is the client side code to prepare channel for the WCF service
//f is instance of WSTrustChannelFactoryf.Credentials.UserName.UserName = username;
f.Credentials.UserName.Password = password;
f.Credentials.ClientCertificate.Certificate = "I am assigning the client certificate here";f.Open();
var channel = f.CreateChannel(new EndpointAddress(endpointAddress)) as WSTrustChannel;
Server side, I have custom SecurityTokenHandlers for both UserNameSecurityTokenHandler (to validate username and password) as well as X509SecurityTokenHandler (to validate client cert)
But in this case, only my custom X509SecurityTokenHandler is getting called. So my question is whether it is possible to use transport security "certificate" as well as message security "username" in combination? In my opinion it
do not work.
ViBi

Hi vkbishnoi,
By default, the wsHttpBinding binding provides HTTP communication. When configured for transport security, the binding supports HTTPS communication. HTTPS provides confidentiality and integrity protection for the
messages that are transmitted over the wire. However the set of authentication mechanisms that can be used to authenticate the client to the service is limited to what the HTTPS transport supports. WCF offers a
TransportWithMessageCredential security mode that is designed to overcome this limitation. When this security mode is configured, the transport security is used to provide confidentiality and integrity
for the transmitted messages and to perform the service authentication. However, the client authentication is performed by putting the client credential directly in the message. This allows you to use any credential type that is supported by
the message security mode for the client authentication while keeping the performance benefit of transport security mode.
So we can use the following configuration:
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Certificate"/>
<message clientCredentialType="UserName"
negotiateServiceCredential="false"
establishSecurityContext="false"/>
</security>
In one word is that for this binding credentials are passed with the message and message protection and server authentication are provided  by the transport layer.
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.

Similar Messages

  • Is it possible to use FaceTime With my two IPad With the same email address? I Will Google to china next month And i would like to communicate With my kids.

    IS it possible to use FaceTime With my two IPad That has the same address? I Will Go to China soon And i would like to discuss With my kids from there i.e. One IPad in China And one in Montréal.

    No, this is not possible.  It would be like dialing your own phone number.  You must verify an additional new email address for your second iPad.  See the following link which will tell you how to do this.  You will need to add this new address to Facetime app in one of your iPads.
    http://support.apple.com/kb/HE68

  • Hi all, I want to know if is possible to use imessage with iphones in different countries, like bb??, Hi all, I want to know if is possible to use imessage with iphones in different countries, like bb??

    Hi all, I want to know if is possible to use imessage with people in a different contry

    yes it is possible to use imessage with your contacts in different countries.

  • Possible to use BlazeDS with GAE Java?

    Is it possible to use BlazeDS with the new GAE Java update? It's working on the local development server, but not on the online one. Apparently, BlazeDS uses some Java classes not in GAE's whitelist yet. Any workarounds? PyAMF on GAE works fine for Python, but I'd like to use BlazeDS and Java. Thanks!

    Yes, it is very much possible. I have done the integration, please check the steps in my post.
    http://sixtyfourarts.blogspot.com/2009/05/gae-integration-with-blazeds-in-eclipse.html

  • Ist it possible to use icloud with iphone3g

    ist it possible to use icloud with iphone3g

    The only formally supported thing is manually setting up an iCloud mail account. Even though Find My Phone will seemingly connect my iPhone 3G doesn't show up as it being connected through the iCloud web site.
    http://support.apple.com/kb/HT4864

  • Is it possible to use Blockbuster with AppleTV?

    Is it possible to use Blockbuster with AppleTV.  I bought the AppleTV 06/2012 at an Apple Store...not sure if I have v1 or v2.  Thx

    Not natively. If they have an app and it's enabled for airplay you could use an IOS device to beam content.

  • IS IT POSSIBLE TO USE HIBERNATE WITH NETBEAN?

    Hi and Happy New year,
    Please, is it possible to use hibernate with netbean. If yes, where can I get the materials on the configuration.
    Thanks
    Emeka

    NetBeans is an IDE. Hibernate is a data access API/solution. So not sure what you're asking. If you want to know if NetBeans IDE has Hibernate integration, go look at NetBeans feature set and/or plugins. Either way, Google...

  • Is it possible to use jdbcappender with jboss's logger?

    Hi
    Is it possible to use JDBCAppender with org.jboss.logging.Logger instead of org.apache.log4j.Logger? secondly can i also use jboss.logging.logger to send my logs to the database (not manually, using configuration file as with apache.log4j) ?
    TIA.

    Back in my days, when you were new to Java, you wrote all sorts of stupid console programs and crapplets to get the hang of it.
    Anyway, without seeing JBoss' logging framework, I'm gonna say "no, you can't" unless they've actually bothered to make it compatible with commons-logging (or was that log4j). However, you probably could write your own JDBCAppender for their framework or at least a small adapter that would forward the logging requests to log4j.

  • Is it possible to use emoji with email on snow leopard

    Is it possible to use emoji with email on snow leopard?

    Probably not, since those are Lion/ML items and SL doesn't have them. That's my WAG.

  • Is it possible to use iMessage with restrictions turned on?

    Is it possible to use iMessage with restrictions turned on?
    To be more specfic is it possible to use iMessage with the camera feature block via restrictions?  It appears that iMessage cannot be use with the Camera restricted, but I want to verify my experience with the community.
    Thanks

    Other users have reported the same blocking.  This one gives a good explaination.
    https://discussions.apple.com/message/16411942#16411942

  • Is it possible to use aim with a mac for free?

    Is it possible to use aim with a mac for free?

    If you mean the application AIM for Mac, it will depend on your download speed.
    If you mean "Can I use iChat with an AIM a screen name and does it cost anything ?" then the answer is Yes you can and no it does not cost and there is no download to do.
    If you mean "Can I use the AIM service with an @mac screen name and can this be done for free ? " then the answer is again yes.
    A trail account cost nothing and will work in ichat after the 60 days is up
    A Paid for but Lapsed account will also work in iChat and for this purpose can now be considered free.
    As I said and hinted at before your first question does not make it clear what you are actually asking.
    The Application AIM for Mac is stuck at version 4.7 and does not do Video or Audio Only chats.
    It has things that are useful in tweaking Buddy Lists in iChat but it is not specifically needed to contact AIM Buddies.
    9:00 PM Tuesday; June 24, 2008

  • Ok so I have a free standing iSight Cam, is it possible to use it with my white MacBook ? and if so how do I go about it ? I've tried researching for updates, drives but need help.

    Ok so I have a free standing iSight Cam, is it possible to use it with my white MacBook ? and if so how do I go about it ? I've tried researching for updates, drives but need help. Can someone give me some direction ?

    jpatricio787 wrote: ... is it possible to use it with my white MacBook ?...
    OK so yes, but if, and only if:
    (1) your MacBook has a Firewire port (not all do)
        - and -
    (2) your old external iSight camera works (not all do)
        - and -
    (3) your MacBook is working properly.
    If you are not certain whether your MacBook model has Firewire, you can search MacBook Technical Specifications for your model.  Alternatively, check the  User Guide Manual that came with your MacBook for the information you need to be certain.
    If you are not certain that your old external iSight camera works, you can test it using the suggestions in this link.
    jpatricio787 wrote: ... if so how do I go about it ? ...
    Follow the instructions in your iSight User's Guide to connect and turn on the iSight.  Then launch the Apple app you want to use with your iSight.  If you need more information about using an app, search for "camera" (without the quote marks) in the Help menu choice for the app.
    jpatricio787 wrote:... Can someone give me some direction ?
    If you need more direction, post back the specifics of what you still need.  We will offer further direction based on the details of your reply.
    Message was edited by: EZ Jim
    Mac OSX 10.9.3

  • Using iPod with both Mac and Windows

    Is it possible to use the same iPod on both a Windows and Mac computer back and forth without losing all my songs and videos?
    Right now I have Windows, but I'm getting a Mac and I want to be able to switch back and forth from computer to computer. Is this possible?
    If not, how can I keep my songs and videos and put them on the new Mac? My CD burner is broke, so that's out of the question. If I had to choose, I'd want them to be on the Mac instead of the computer with Windows, but that's currently where my iTunes library is.

    You can't use it on both. iPods get formatted for one or the other and then keyed to a single computer.
    You can, however, move all of your files from one computer to the other. The easiest way would be target disk mode, but requires that the Windows PC have a FireWire port (which is fairly uncommon for Wintel boxes). You could also use an ethernet network cable between the two or connect them to the same network. Then, open the Mac's System Preferences, go to the Sharing preferences, and enable Windows Sharing or Windows File Sharing. With windows sharing selected, read the message that appears at the bottom of the screen. Something like "Windows users can access your computer at \\192.168.1.100\user"
    Then, go to the Windows machine, open My Network Places (should be on the desktop, but if not try My Computer). Look for the "Entire Network" and try to find your Mac. If you have trouble finding it, do a search. Set it to look for "Computers" with the name... and enter your computer's name EXACTLY as is appears at the top of the Mac's Sharing preferences pane (capitals, spaces, lower-case, etc.). You can also try a search for the "\\192.168.1.100\user" address.
    Once you find your computer, make a shortcut in the My Network Places folder for future use. Double click the icon for your mac and enter your Mac OS X short name and password in the SMB access dialogue (your short name can be found in System Preferences > Accounts > you). You should now be connected to your home folder on the Mac. You can drag and drop any files from the windows PC to your home folder (or folders within it).
    For any help with networking, try http://www.homenethelp.com/home-network.asp

  • Is it possible to use variable with interval in BEX for filter or pl funct.

    Hi,
    we have filters in which variables with interval are being used, as well as planning functions in which a variable with interval should be used.
    In the planning modeler everythings works fine. But I have problems to fill values for these type of variables. The error message "specify a value for variable xxx " is always generated. I know it is possible to do this (with VAR_LOW & VAR_HIGH instead of VAR_VALUE).
    Can someone please help?
    regards
    D

    Hello Dries,
    yes, it's possible. You have to use VAR_VALUE_LOW and VAR_VALUE_HIGH.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Possible to use menuBar with task flow based ADF menus?

    Hello -
    I've just worked through the " [Create ADF Menus for Page Navigation|http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html] " tutorial. It shows how to create menus based on your task flows.
    My question: is it possible to use the af:menuBar with these menu models (instead of navigationPanes or breadcrumbs) ?
    I am using JDev 11g 11.1.1.1.0
    Thanks.
    Edited by: scott.turnquist on Nov 5, 2009 12:07 PM

    Hi,
    The XML menu model extends the Trinidad TreeModel, which extends Collection model. This allows you to access the hierarchical menu structure so that you can use af:iterator to build a structure to display in a af:menuBar
    Frank

Maybe you are looking for

  • Importing InDesign IDML results in blank chapter

    I'm trying to import content into iBooks Author from InDesign. Apple's documentation says to export the InDesign document as an IDML file, then in iBooks Author go to Insert > Insert Chapter From... > InDesign File(IDML). However, when I try this, th

  • Installing software prob

    So, I finally decided to buy the Zen Micro. Every time I put the installation CD in and run the program, one of those annoying Error boxes pops up. I've tried restarting my computer and that doesn't work. I don't know what to try next. Help.

  • Shut off monitor with fn key (I think)

    Pavilion dv6. Playing a game, intending to hit f4*, I instead activated a special command I've never used with a laptop: a symbol that looks a little like a monitor - a rectangle flanked by two vertical lines. Screen went black. I've tried esc and tr

  • Forgot password on ipod- how do I reset

    how do i reset ipod classic. i forgot password

  • Can I force Tbird 31.6 to display equations in reply emails?

    I have been copying and pasting equations from Word 2010 document (can't find out what was originally used to put equations into source) into email in Tbird 31.6. Apparently paste fine; can see equation when email is sent but not when reply comes in.