Securing Web Services Using Microsoft Web Services Enhancements 1.0. Petr PALAS PortSight Software Architect petrp@portsight.com www.portsight.



Similar documents
Web Service Security Vulnerabilities and Threats in the Context of WS-Security

This Working Paper provides an introduction to the web services security standards.

e-filing Secure Web Service User Manual

Federated Identity Management Solutions

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

T-Check in Technologies for Interoperability: Web Services and Security Single Sign-On

CICS Web Service Security. Anthony Papageorgiou IBM CICS Development March 13, 2012 Session: 10282

A Conceptual Technique for Modelling Security as a Service in Service Oriented Distributed Systems

Securing Web Services From Encryption to a Web Service Security Infrastructure

Secure Identity Propagation Using WS- Trust, SAML2, and WS-Security 12 Apr 2011 IBM Impact

WebService Security. A guide to set up highly secured client-server communications using WS-Security extensions to the SOAP protocol

The Role of Identity Enabled Web Services in Cloud Computing

Szolgáltatásorientált rendszerintegráció. WS-* standards

Secure Authentication and Session. State Management for Web Services

E-invoice manual Instruction for a client implementation of the B2B web service

Core Feature Comparison between. XML / SOA Gateways. and. Web Application Firewalls. Jason Macy jmacy@forumsys.com CTO, Forum Systems

REST and SOAP Services with Apache CXF

Web Services Security: What s Required To Secure A Service-Oriented Architecture. An Oracle White Paper January 2008

HexaCorp. White Paper. SOA with.net. Ser vice O rient ed Ar c hit ecture

IBM WebSphere Data Power SOA Applicances V3.8.1 Solution IMP. Version: Demo. Page <<1/10>>

Enterprise Access Control Patterns For REST and Web APIs

Improving performance for security enabled web services. - Dr. Colm Ó héigeartaigh

Creating a Secure Web Service In Informatica Data Services

Web Service Facade for PHP5. Andreas Meyer, Sebastian Böttner, Stefan Marr

Federated Identity and Trust Management

Q Lately I've been hearing a lot about WS-Security. What is it, and how is it different from other security standards?

An Oracle White Paper November Oracle Primavera P6 EPPM Integrations with Web Services and Events

IBM SPSS Collaboration and Deployment Services Version 6 Release 0. Single Sign-On Services Developer's Guide

PowerCenter Real-Time Development

Web Services Security Tutorial

Management and Web service Management

vcenter Single Sign On Programming Guide vcenter Single Sign On SDK vsphere 5.5

Chapter 12 GRID SECURITY ARCHITECTURE: Requirements,fundamentals, standards, and models

A pattern for the WS-Trust standard for web services

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Software Requirement Specification Web Services Security

Creating a User Profile for Outlook 2013

MS Enterprise Library 5.0 (Logging Application Block)

Privacy in Cloud Computing Through Identity Management

Integration of Hotel Property Management Systems (HPMS) with Global Internet Reservation Systems

Agenda. How to configure

Securely Managing and Exposing Web Services & Applications

KMx Enterprise: Integration Overview for Member Account Synchronization and Single Signon

A Signing Proxy for Web Services Security. Dr. Ingo Melzer RIC/ED

New Features in Neuron ESB 2.6

HireRight Integration Platform and API: HireRight Connect. Third Party Developer Guide

2933A: Developing Business Process and Integration Solutions Using Microsoft BizTalk Server 2006

SAML v1.1 for.net Developer Guide

Xerox Mobile Print Cloud

Architectural Requirements for an SOA Based on Web Services. Jim Bole VP, Engineering Infravio, Inc. April 23, 2003

NIST s Guide to Secure Web Services

AquaLogic Service Bus

e-gov Architecture Service Interface Guidelines

Flexible Identity Federation

CMDBuild Authentication (file auth.conf)

An Oracle White Paper Dec Oracle Access Management Security Token Service

Copyright

DocuSign Connect Guide

Webmail Using the Hush Encryption Engine

Abstract of the Core Concepts of S.A.F.E.: Standards for Federated Identity Management

This module provides an overview of service and cloud technologies using the Microsoft.NET Framework and the Windows Azure cloud.

WCF WINDOWS COMMUNICATION FOUNDATION OVERVIEW OF WCF, MICROSOFTS UNIFIED COMMUNICATION FRAMEWORK FOR.NET APPLICATIONS

Server based signature service. Overview

PROVIDING SINGLE SIGN-ON TO AMAZON EC2 APPLICATIONS FROM AN ON-PREMISES WINDOWS DOMAIN

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

OPENIAM ACCESS MANAGER. Web Access Management made Easy

Managing Net-Centric Systems: The Complexity of Web Services Management

CONTRACT MODEL IPONZ DESIGN SERVICE VERSION 2. Author: Foster Moore Date: 20 September 2011 Document Version: 1.7

Sage 100 ERP. ebusiness Web Services Installation and Reference Guide

WEB SERVICES SECURITY

TIBCO Spotfire Web Player 6.0. Installation and Configuration Manual

17 March 2013 NIEM Web Services API Version 1.0 URI:

Securing ArcGIS Server Services: First Steps

Understanding Tomcat Security

Federally Facilitated Exchange (FFE) and Data Services Hub (Hub) Overview. July 25, 2012

Easy CramBible Lab DEMO ONLY VERSION Test284,IBM WbS.DataPower SOA Appliances, Firmware V3.6.0

Single sign-on for ASP.Net and SharePoint

2 Transport-level and Message-level Security

A Service Oriented Security Reference Architecture

BroadSoft BroadWorks ver. 17 SIP Configuration Guide

PUBLIC Connecting a Customer System to SAP HCI

Note that if at any time during the setup process you are asked to login, click either Cancel or Work Offline depending upon the prompt.

Transcription:

Securing Web Services Using Microsoft Web Services Enhancements 1.0 Petr PALAS PortSight Software Architect petrp@portsight.com www.portsight.com

Agenda What is WSE and Its Relationship to GXA Standards Currently Supported in WSE WSE Architecture Implementation of WS-Security in WSE Demo of Using WSE Future Standards

What is WSE and Its Relationship to GXA Microsoft Web Services Enhancements 1.0 Replaces Microsoft WSDK Free to download and supported by Microsoft.NET library for easy use of higher-level WS standards from GXA (that are based on XML, SOAP, XSD and WSDL) It also contains samples, documentation and tools It will be updated according to GXA standards

Standards currently supported Emerging standards in WSE: WS-Security (Security Credentials, Digital Signing, Encryption) WS-Routing WS-Attachments and DIME Other functionality: Writing your own filters Diagnostic features

Security Features in WSE Digital signature of a SOAP message X.509 certificates / username+password / custom binary token Encryption of a SOAP message X.509 / shared secret / custom binary token Authentication using security credentials X.509 / username+password / custom binary token

WSE Architecture Additional information is added to the SOAP headers using filters Built-in filters: Trace Filter (diagnostics) Security Filter (WS-Security) Timestamp Filter (WS-Security) Referral Filter (WS-Referral) Routing Filter (WS-Routing) You can write yours

WSE Filters Source: http://msdn.microsoft.com

WSE Filter Pipeline Source: http://msdn.microsoft.com

How To Use WSE (1) Create client and server projects in VS.NET Add reference to Microsoft.Web.Services.dll library to both server and client Add following lines to both server and client code (VB.NET): imports Microsoft.Web.Services imports Microsoft.Web.Services.Security

How To Use WSE (2) Edit web.config (see documentation) on server Write and compile server code Add Web Reference to the client program Edit generated proxy class it must inherit from Microsoft.Web.Services.WebServicesClientProtocol Write and run client code You can use WSE 1.0 Settings (tool integrated into VS.NET) to edit the configuration files

Adding Security Credentials Without WS-Security: Use Credentials property of the proxy class (on the transport layer) may be lost at intermediaries! With WS-Security: Add credentials to the SOAP message header Supported types of security credentials: X.509 Certificate User name and password (none/plaintext/hashed) Custom-built binary token

DEMO Authentication and Signing a Message user name, password (user token) signature (using user name and password) timestamp check signature check timestamp get user token return valid password using custom PasswordProvider class if provided password is the same as the one from the PasswordProvider, then execute the method

DEMO Server Code (1) <WebMethod()> Public Function getamount() As String Dim retval As String Dim requestcontext As SoapContext = HttpSoapContext.RequestContext ' Verify that a SOAP request was received If IsNothing(requestContext) Then Throw (New ApplicationException( Message is not acceptible")) End If

DEMO Server Code (2) Dim usertoken As UsernameToken = GetFirstUsernameToken( requestcontext.security) If Not IsNothing(userToken) Then return amount retval = 1234 End If Return retval

DEMO Client Code (1) Dim usertoken As UsernameToken = New UsernameToken(TextBox1.Text, TextBox2.Text, PasswordOption.SendPlainText) Dim serviceproxy As localhost.service1 = New localhost.service1() Dim requestcontext As SoapContext = serviceproxy.requestsoapcontext

DEMO Client Code (2) add credentials requestcontext.security.tokens.add(userto ken) create signature and add it to the message not secure when sending also password (!) this is just example Dim sig As Signature = New Signature(userToken) requestcontext.security.elements.add(sig) requestcontext.timestamp.ttl = 10000 show result MsgBox(serviceProxy.getAmount())

Advantages & Limitations Advantages: WS-Security isn t limited to point-to-point security; it supports routing and scaling WSE provides easy to use libraries Limitations: Since the standards are still under development, various implementations may not be compatible. Recommended only for specific solutions. You have to understand the security protocols.

Future Standards In Next Versions WS-Policy WS-Trust WS-Privacy WS-SecureConversation WS-Federation WS-Authorization

Used and Recommended Sources Demo Source Code: http://www.portsight.com/technology Microsoft Developer Network (WSE download): http://msdn.microsoft.com/webservices OASIS: http://www.oasis-open.org/

Questions & Answers

Thank You for Your Time!