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 916859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:06:56+00:00 2026-05-15T18:06:56+00:00

I have a NetTcpBinding with SecurityMode.TransportWithMessageCredential . Transport.ClientCredentialType is set to MessageCredentialType.Windows , but

  • 0

I have a NetTcpBinding with SecurityMode.TransportWithMessageCredential.

Transport.ClientCredentialType is set to MessageCredentialType.Windows, but I’m considering MessageCredentialType.UserName.

Then there’s a class DataStoreServerProxy for fetching database data which implements IDataStoreContract.

It contains methods such as this one:

Private Function Common_IDataStoreContract_ModifyData(ByVal ParamArray dmlStatements As ModificationStatement()) As ModificationResult Implements IDataStoreContract.ModifyData
        Return wrappedDataStore.ModifyData(dmlStatements)
    End Function

In order to get to that DB point, user must have already supplied the credentials. The question is, how to obtain them in those methods? Depending on the user name, I have to decide whether to allow access to some tables or not.

  • 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-15T18:06:56+00:00Added an answer on May 15, 2026 at 6:06 pm

    Username can be retrieved using OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name

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

Sidebar

Related Questions

Have a singleton class for BNRItemStore, but when I tried to call it, I
I have a WCF service using netTcpBinding (the protocol should not be relevant but
I have hosted a WCF duplex service ( netTcpBinding ) in a Windows Service
I have an wcf winforms self-hosted app using nettcpbinding.(net.tcp://aaa.homeip.net:9388) The problem is windows 7
I have a WCF application that is using NetTcpBinding . I want to invoke
Have an option to choose either a windows SE or Web Edition to install,
have been playing with Cubepoints (wordpress plugin) and have installed the ranks module but
Have you ever seen any of there error messages? -- SQL Server 2000 Could
I have a working ServiceHost with a single NetTcpBinding and a single endpoint. I
I have moved my file transfer service from basicHttpBinding to netTcpBinding as I am

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.