WSE2.0 - best practise guidance

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default WSE2.0 - best practise guidance

    Hi!

    I would like to implement WS-Security features using WSE2.0.
    Initially the services are consumed by .NET Windows Form Clients.

    What do you think is reasonable level of security and safety?
    Do you think following configuration of the web services proxies are "good
    enough"?

    Public Sub ConfigureProxy(ByVal proxy As WebServicesClientProtocol)
    'WS-Security: "Authentication" & "Authorization" with UsernameToken
    (no need to send password because of signing below)
    Dim token As UsernameToken = New UsernameToken(Me.txtUserName.Text,
    Me.txtPassword.Text, PasswordOption.SendNone)
    proxy.RequestSoapContext.Security.Tokens.Add(token )

    'WS-Security: "Signing" with UsernameToken (keep message integrity)
    Dim derivedToken As New DerivedKeyToken(token)
    proxy.RequestSoapContext.Security.Tokens.Add(deriv edToken)
    proxy.RequestSoapContext.Security.Elements.Add(New
    MessageSignature(derivedToken))

    'WS-Security: "Encryption" with UsernameToken (ensure
    confidentiality, not "very" secure)
    proxy.RequestSoapContext.Security.Elements.Add(New
    EncryptedData(derivedToken))
    End Sub

    We are not communicating "bank transactions", but anyway we would like to
    implement "good enough" security.

    Best regards,
    Benjamin, Sweden
    Benjamin Guest

  2. Similar Questions and Discussions

    1. application variables, cflock, and best-practise
      i have a number of application variables that i store once but access frequently (a few times per page). the simple question is "should i be...
    2. best practise to get queries?
      hi, i have this big select statement, that take about 50 seconds to complete the selection. what is the best practise to call this select...
    3. WSE2 and SoapContext
      Hi all, I want to write a program (not Web Service) that will get the signed Soap message (using X509 certificate) from a WebService client as a...
    4. SoapExtensions,WSE1,WSE2 What should I use?
      hi I have been using a system using a WS with no security at all Now I want to add some authentication logic in order to access the methods on...
    5. Upgrade WSE1.0 to WSE2.0
      Hi, I have upgraded an implementation I had for WSE1.0 using UsernameToken. My question is, will this meet the requirements if the OASIS...
  3. #2

    Default RE: WSE2.0 - best practise guidance

    I think your way is safe enough for common web application. UsernameToken
    reply on windows authentication and we can trust it in a windows domain or
    OU. For better understand WS-Security in SWE 2.0, I suggest you may refer
    to following articles:

    WS-Security Drilldown in Web Services Enhancements 2.0

    [url]http://msdn.microsoft.com/webservices/building/wse/default.aspx?pull=/librar[/url]
    y/en-us/dnwse/html/wssecdrill.asp

    Web Services Security (WS-Security)
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/[/url]
    html/ws-security.asp

    Hope this help,

    Luke

    [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139