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

  • Home
  • SEARCH
  • 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 149007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:03:35+00:00 2026-05-11T09:03:35+00:00

How can I authorise a client (in this case a client is an application)

  • 0

How can I authorise a client (in this case a client is an application) to use a web service within .NET,

For example: I want a 3rd pary application to call a method but not allow other applications within the network to call this method.

I want to avoid transport layer authorisation and use message based authorisation.

  • 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. 2026-05-11T09:03:35+00:00Added an answer on May 11, 2026 at 9:03 am

    You should take a look at the WS-Security and WS-Policy standards. The best way is to have the client application sign all requests (with a private key) and check this signature on the server side.

    We use a setup like this, with the following WS-Policy definitions in the WSDL:

    <!--Endpoint Policy--> <wsp:Policy wsu:Id='Endpoint_policy'             xmlns:wsp='http://schemas.xmlsoap.org/ws/2004/09/policy'             xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'>   <wsp:ExactlyOne>     <wsp:All>        <sp:AsymmetricBinding          xmlns:sp='http://schemas.xmlsoap.org/ws/2005/07/securitypolicy'>         <wsp:Policy>           <sp:InitiatorToken>             <wsp:Policy>               <sp:X509Token                  sp:IncludeToken='http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient'>                 <wsp:Policy>                   <sp:WssX509V3Token10 />                 </wsp:Policy>               </sp:X509Token>             </wsp:Policy>           </sp:InitiatorToken>            <sp:RecipientToken>             <wsp:Policy>               <sp:X509Token                  sp:IncludeToken='http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never'>                 <wsp:Policy>                   <sp:WssX509V3Token10 />                 </wsp:Policy>               </sp:X509Token>             </wsp:Policy>           </sp:RecipientToken>            <sp:AlgorithmSuite>             <wsp:Policy>               <!-- sp:Basic256/-->               <sp:TripleDesRsa15 />             </wsp:Policy>           </sp:AlgorithmSuite>            <sp:Layout>             <wsp:Policy>               <sp:Lax />             </wsp:Policy>           </sp:Layout>          </wsp:Policy>       </sp:AsymmetricBinding>        <sp:Wss10          xmlns:sp='http://schemas.xmlsoap.org/ws/2005/07/securitypolicy'>         <wsp:Policy>           <sp:MustSupportRefKeyIdentifier />           <sp:MustSupportRefIssuerSerial />         </wsp:Policy>       </sp:Wss10>      </wsp:All>   </wsp:ExactlyOne> </wsp:Policy> <!--End of Endpoint Policy-->  <!--Message Policy1--> <wsp:Policy wsu:Id='Sign_message_policy'             xmlns:wsp='http://schemas.xmlsoap.org/ws/2004/09/policy'             xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'>   <wsp:ExactlyOne>     <wsp:All>        <sp:SignedParts          xmlns:sp='http://schemas.xmlsoap.org/ws/2005/07/securitypolicy'>         <sp:Body />       </sp:SignedParts>      </wsp:All>   </wsp:ExactlyOne> </wsp:Policy>  <!--End of Message Policy1--> 

    You then reference these policies in the binding part of the WSDL. Example:

      <binding name='ExampleServiceSOAP' type='foobar:ExampleServicePort'>     <!-- WS-Security -->     <wsp:PolicyReference URI='#Endpoint_policy' />     <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>     <operation name='getSomething'>       <soap:operation soapAction='getSomething' style='document'/>       <input>         <!-- WS-Security -->         <wsp:PolicyReference URI='#Sign_message_policy' />         <soap:body use='literal'/>       </input>       <output>         <soap:body use='literal'/>       </output>     </operation>   </binding> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In postgres I am fairly sure you can do something like this SELECT authors.stage_name,
Let's look at an example - books. A book can have 1..n authors. An
can you recommend some good ASP.NET tutorials or a good book? Should I jump
Can a LINQ enabled app run on a machine that only has the .NET
Can I get a 'when to use' for these and others? <% %> <%#
Can somebody point me to a resource that explains how to go about having
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
Can you cast a List<int> to List<string> somehow? I know I could loop through
Can anyone tell me how I can display a status message like 12 seconds
Can you tell me what is the difference between abstraction and information hiding in

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.