SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Martin Raepple / Product Owner Identity and Access Management /
SAP HANA Cloud Product Team
SAP HANA Cloud – Virtual Bootcamp
Securing SAP HANA Cloud Applications
© 2012 SAP AG. All rights reserved. 2
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP's
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.
© 2012 SAP AG. All rights reserved. 3
Agenda
 Enabling Authentication
 Enforcing Authorizations
 Logout
 Protecting from
Common Web Attacks
 Configuring local
test user and roles
 Using the
local Test
Identity Provider
 Default Identity
Federation with SAP
ID Service
 Identity Federation
with the corporate
Identity Provider
 Role Assignments
 Demo
 Logging and
Tracing
 SAML
Debugging
Secure
Cloud Application
Development
Security
Troubleshooting
Local Testing
Testing in the
Cloud
Identity and Access
Management in
the Cloud
Secure Cloud Application
Development
© 2012 SAP AG. All rights reserved. 5
Enabling Authentication (1/4)
High-level Architecture
SAP HANA Cloud
Application Identity Provider
(IdP)
SAP HANA
Cloud
Delegate authentication
and identity management
+ Keep focused on the business logic
Delegation to a central service (IdP)
enables Single Sign-On (SSO)
between multiple Cloud applications
Mature and proven security standards
for integration with IdP
Three options:
• Local IdP in the SAP HANA Cloud
SDK  for Testing only!
• SAP ID Service  „out-of-the-box“
IdP in the Cloud
• Your own IdP (e.g. in the corporate
network)
+
+
Local User Store
Central User Store
+
© 2012 SAP AG. All rights reserved. 6
Enabling Authentication (2/4)
Declarative …
<login-config>
<auth-method>FORM</auth-method>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected</...>
<url-pattern>/admin/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Administrator</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description>Administration users</...>
<role-name>Administrator</role-name>
</security-role>
web.xml: Supported Authentication Methods:
 FORM
 Delegates authentication to the SAP ID
Service or another IdP according to the
Security Assertion Markup Language
(SAML) 2.0 protocol
 BASIC
 HTTP "basic" authentication scheme
according to RFC 2617. Web browsers
prompt users to enter a user name and
password. The actual authentication is
still delegated to the SAP ID service or
to a SCIM*-compliant IdP
* http://tools.ietf.org/html/draft-ietf-scim-api-01
© 2012 SAP AG. All rights reserved. 7
Enabling Authentication (3/4)
… and Programmatic
String user = request.getRemoteUser();
if (user != null) {
response.getWriter().println("Hello, " + user);
} else {
LoginContext loginContext;
try {
loginContext = LoginContextFactory.createLoginContext("FORM");
loginContext.login();
response.getWriter().println("Hello, " +
request.getRemoteUser());
} catch (LoginException e) {
e.printStackTrace();
}
}
© 2012 SAP AG. All rights reserved. 8
Enabling Authentication (4/4)
Excursus: SAML-based Single Sign-On (SSO)
1. User accesses protected web resource
on SP
2. SP sends SAML Authentication Request
via HTTP redirect to trusted IdP
3. IdP authenticates the user
(if not done already)
4. Upon successful authentication, IdP sends
SAML Response (which includes the SAML
Assertion) to the SAML Service Pro via
HTTP POST
User
3
1
2
4
SAML Request
SAML Response
1
2
3
4
Identity Provider
(IdP)
SAP HANA Cloud
Application
SAP HANA
Cloud
Trust
© 2012 SAP AG. All rights reserved. 9
Enforcing Authorizations
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
if(!request.isUserInRole("Administrator")){
response.sendError(403, "Logged in user does not
have role Administrator");
return;
} else {
out.println("Hello administrator");
}
}
© 2012 SAP AG. All rights reserved. 10
Programmatic Logout
public class LogoutServlet extends HttpServlet {...
LoginContext loginContext = null;
if (request.getRemoteUser() != null) {
try {
loginContext = LoginContextFactory.createLoginContext();
loginContext.logout();
} catch (LoginException e) {
response.getWriter().println("Logout failed. Reason: " +
e.getMessage());
}
} else {
response.getWriter().println("You have successfully logged
out.");
}
}
© 2012 SAP AG. All rights reserved. 11
Protecting from Common Web Attacks
Cross-Site Scripting (XSS) Attack
The two most important countermeasures to prevent
XSS attacks are to:
Constrain input
Encode output
SAP HANA Cloud XSS Output Encoding Library
String encodedFirstname = null;
IXSSEncoder xssEncoder = XSSEncoder.getInstance();
try {
encodedFirstname =
xssEncoder.encodeHTML(firstName).toString();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
out.println("<br>Hello, " + encodedFirstname);
Attacker
Vulnerable Cloud
Application
Infects
with
malicious
script
1
Downloads
page with
malicious
script
2
Victim
3
executes script
in the context
of the Victim’s
session
© 2012 SAP AG. All rights reserved. 12
Protecting from Common Web Attacks
Cross-Site Request Forgery (XSRF) Attack
Attack depends on the predictability of the
request URL to the vulnerable Application
A countermeasure to prevent XSRF attacks is
to generate and add a token or nonce per
request which is checked on the server-side
SAP HANA Cloud provides protection based on
Apache Tomcat's CSRF Prevention Filter.
web.xml:
<filter>
<filter-name>CsrfFilter</filter-name>
<filter-class>
org.apache.catalina.filters.CsrfPreventionFilter
</filter-class>
<init-param>
<param-name>entryPoints</param-name>
<param-value>/home</param-value>
</init-param>
</filter>
Attacker‘s
Web-Site
<img src="http:
//www.webapp.com/
transferMoney?
account=hacker&
amount=1000">
1
Victim‘s
Web Browser
Vulnerable
Application
www.webapp.com
2
JSESSIONID=abc123
http://www.webapp.
com/transferMoney?
account=hacker&
amount=1000
Local Testing
© 2012 SAP AG. All rights reserved. 14
Configuring Test Users and Managing Roles on the Local Server
SAP HANA Cloud Eclipse Tools: Servers view  Local Server  Users tab.
Local Test
Users
Assigned Roles
to the selected
User in the local
Server
User Attribute
and Values
Local Server
<local_server_dir>/config_master/
com.sap.security.um.provider.neo.local/
neousers.json
SAP HANA Cloud
Application
Testing in the Cloud
© 2012 SAP AG. All rights reserved. 16
Using the local Test Identity Provider
neousers.json
Local Server
SAP HANA Cloud
local Test Identity
Provider
SAP HANA Cloud
Application
Trust
SAP HANA
Cloud
 The local test IdP is packaged within the
SAP HANA Cloud SDK. When you start the
local server, it will start as well.
 Define local test IdP users and their
attributes
 Configuring the service provider of your
account in SAP HANA Cloud
 Configuring trust on SAP HANA Cloud to
the local Test IdP
 Configuring trust on the local Test IdP
to SAP HANA Cloud
 Access your application deployed on
the SAP HANA Cloud and test it against
the local test IdP and its defined users and
attributes.
1
1
2
2
3
3
4
4
Identity and Access
Management in the Cloud
© 2012 SAP AG. All rights reserved. 18
 SAP ID Service User ID
 Validated E-Mail Address
 First Name, Last Name,
Display Name
Default Identity Federation with SAP ID Service
SAP HANA Cloud
Application
SAP
ID Service
SAP HANA
Cloud
+ By default, SAP HANA Cloud
applications delegates authentication
and identity management to SAP ID
Service. No further configuration for the
Trust Relationship is required.
SAP ID Service is a public, SAML 2.0-
compliant Identity Provider in the
Cloud. It manages ~4.2 Million Users
(e.g. for the SAP Community Network)
With SAP ID Server, users can benefit
from SSO to other SAP On-Demand
solutions and web sites
+
 SAP Public Web Sites
(SAP.com, SMP)
 SAP Business ByDesign
 SAP JAM
 …
Cloud
Trust + SSO
~4.2 Million Users
+
© 2012 SAP AG. All rights reserved. 19
Identity Federation with the corporate Identity Provider
Corporate
IdP
Employees
CorporateNetwork
SAP HANA Cloud
Application
SAP HANA
Cloud
Trust + SSO
Trust
+ SSO
+ SAP HANA Cloud applications can
delegate authentication and identity
management to an existing Corporate
IdP that can for example authenticate
your company's employees.
Trust must be configured similar to the
local Test IdP scenario:
 Configuring the service provider of your
account in SAP HANA Cloud
 Configuring trust on SAP HANA Cloud
to the Corporate IdP
 Configuring trust on the Corporate IdP
to SAP HANA Cloud
+
 (Corporate-wide unique) User ID
 any User Profile Attribute from the
Corp. User Directory
© 2012 SAP AG. All rights reserved. 20
Role Assignments in the Cloud
Employees in
Department Sales
+ Roles allow you to control the access
to application resources in SAP HANA
Cloud
In the Cloud, you can assign Groups or
individual users to a role
Groups are collections of roles that
allow the definition of business-level
functions within your account. They are
similar to the actual business roles
existing in an organization
SAP HANA
Cloud
Group Sales
+
+
jdoe@acme.com
Role Administrator
Roles:
CRM User
Account Owner
DEMO
SSO and Identity Federation with a corporate Identity Provider (IdP)
Troubleshooting
© 2012 SAP AG. All rights reserved. 23
Network Protocol Analyzer
• Wireshark
• Fiddler
• SAML Tracer (Firefox Add-In)
© 2012 SAP AG. All rights reserved. 24
SAP HANA Cloud Logs
com.sap.core.jpaas.security.saml2.sp
Online Q&A
© 2012 SAP AG. All rights reserved. 26
Questions & Answers
Q: Is there anything specific for securing REST services?
A: Right now, REST clients calling services exposed by the same application from within the UI (e.g. SAP UI JavaScript
using an OData Model) can re-use an already established logon session (e.g. via SAML2) of the user at the UI.
Applications exposing (REST) services and no UI can use HTTP Basic Authentication via SSL at the moment to protect
those services. For those scenarios we plan to support the Open Authorization Framwork (OAuth) in the SAP HANA
Cloud Platform which helps to avoid storing the username and password in the Client application.
Q: So once a user is authenticated in the browser, the browser based UI could use REST services?
A: Yes!
© 2012 SAP AG. All rights reserved. 27
SAP Hana Cloud Virtual Bootcamp Sessions
Schedule
Next upcoming bootcamp session
 6th Virtual Bootcamp: Working with the HANA Cloud portal
Overview of the features, capabilities and installation procedure
Details and schedule will be provided soon.
At the end of each session, we will give some time for Q&A.
Remarks:
■ The Virtual Bootcamp sessions are scheduled for the developers of our Hana Cloud Applications partners
and the community interested in our Hana Cloud Applications partner program.
■ The sessions will be recorded and provided to our Hana Cloud Partner community.
Thank You!
Contact information:
Martin Raepple
SAP HANA Cloud
martin.raepple@sap.com

Weitere ähnliche Inhalte

Was ist angesagt?

Single sign on - SSO
Single sign on - SSOSingle sign on - SSO
Single sign on - SSOAjit Dadresa
 
Enterprise single sign on
Enterprise single sign onEnterprise single sign on
Enterprise single sign onArchit Sharma
 
Web Single sign on system
Web Single sign on systemWeb Single sign on system
Web Single sign on systemSwati Sinha
 
Alfresco: Implementing secure single sign on (SSO) with OpenSAML
Alfresco: Implementing secure single sign on (SSO) with OpenSAMLAlfresco: Implementing secure single sign on (SSO) with OpenSAML
Alfresco: Implementing secure single sign on (SSO) with OpenSAMLJ V
 
Enterprise Single Sign-On - SSO
Enterprise Single Sign-On - SSOEnterprise Single Sign-On - SSO
Enterprise Single Sign-On - SSOOliver Mueller
 
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...Fédération d’identité : des concepts Théoriques aux études de cas d’implément...
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...e-Xpert Solutions SA
 
SAP Identity Management Overview
SAP Identity Management OverviewSAP Identity Management Overview
SAP Identity Management OverviewSAP Technology
 
SSO IN/With Drupal and Identitiy Management
SSO IN/With Drupal and Identitiy ManagementSSO IN/With Drupal and Identitiy Management
SSO IN/With Drupal and Identitiy ManagementManish Harsh
 
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-On
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-OnFast and Free SSO: A Survey of Open-Source Solutions to Single Sign-On
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-Onelliando dias
 
Oracle Access Management - Customer presentation
Oracle Access Management - Customer presentation   Oracle Access Management - Customer presentation
Oracle Access Management - Customer presentation Delivery Centric
 
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-onFast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-onCraig Dickson
 
Oracle 4월 20일
Oracle 4월 20일Oracle 4월 20일
Oracle 4월 20일Cana Ko
 
Simplifying User Access with NetScaler SDX and CA Single Sign-on
 Simplifying User Access with NetScaler SDX and CA Single Sign-on Simplifying User Access with NetScaler SDX and CA Single Sign-on
Simplifying User Access with NetScaler SDX and CA Single Sign-onCA Technologies
 
Saml vs Oauth : Which one should I use?
Saml vs Oauth : Which one should I use?Saml vs Oauth : Which one should I use?
Saml vs Oauth : Which one should I use?Anil Saldanha
 
Oracle Identity Governance - Customer Presentation
Oracle Identity Governance - Customer PresentationOracle Identity Governance - Customer Presentation
Oracle Identity Governance - Customer PresentationDelivery Centric
 

Was ist angesagt? (20)

Single sign on - SSO
Single sign on - SSOSingle sign on - SSO
Single sign on - SSO
 
Enterprise single sign on
Enterprise single sign onEnterprise single sign on
Enterprise single sign on
 
Web Single sign on system
Web Single sign on systemWeb Single sign on system
Web Single sign on system
 
Alfresco: Implementing secure single sign on (SSO) with OpenSAML
Alfresco: Implementing secure single sign on (SSO) with OpenSAMLAlfresco: Implementing secure single sign on (SSO) with OpenSAML
Alfresco: Implementing secure single sign on (SSO) with OpenSAML
 
Enterprise Single Sign-On - SSO
Enterprise Single Sign-On - SSOEnterprise Single Sign-On - SSO
Enterprise Single Sign-On - SSO
 
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...Fédération d’identité : des concepts Théoriques aux études de cas d’implément...
Fédération d’identité : des concepts Théoriques aux études de cas d’implément...
 
SAP Identity Management Overview
SAP Identity Management OverviewSAP Identity Management Overview
SAP Identity Management Overview
 
SSO IN/With Drupal and Identitiy Management
SSO IN/With Drupal and Identitiy ManagementSSO IN/With Drupal and Identitiy Management
SSO IN/With Drupal and Identitiy Management
 
Single Sign On - The Basics
Single Sign On - The BasicsSingle Sign On - The Basics
Single Sign On - The Basics
 
SINGLE SIGN-ON
SINGLE SIGN-ONSINGLE SIGN-ON
SINGLE SIGN-ON
 
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-On
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-OnFast and Free SSO: A Survey of Open-Source Solutions to Single Sign-On
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-On
 
IdP, SAML, OAuth
IdP, SAML, OAuthIdP, SAML, OAuth
IdP, SAML, OAuth
 
Oracle Access Management - Customer presentation
Oracle Access Management - Customer presentation   Oracle Access Management - Customer presentation
Oracle Access Management - Customer presentation
 
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-onFast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
Fast and Free SSO: A Survey of Open-Source Solutions to Single Sign-on
 
Single sign on
Single sign onSingle sign on
Single sign on
 
Oracle 4월 20일
Oracle 4월 20일Oracle 4월 20일
Oracle 4월 20일
 
Simplifying User Access with NetScaler SDX and CA Single Sign-on
 Simplifying User Access with NetScaler SDX and CA Single Sign-on Simplifying User Access with NetScaler SDX and CA Single Sign-on
Simplifying User Access with NetScaler SDX and CA Single Sign-on
 
Saml vs Oauth : Which one should I use?
Saml vs Oauth : Which one should I use?Saml vs Oauth : Which one should I use?
Saml vs Oauth : Which one should I use?
 
Single Sign On Considerations
Single Sign On ConsiderationsSingle Sign On Considerations
Single Sign On Considerations
 
Oracle Identity Governance - Customer Presentation
Oracle Identity Governance - Customer PresentationOracle Identity Governance - Customer Presentation
Oracle Identity Governance - Customer Presentation
 

Andere mochten auch

Andere mochten auch (6)

SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2 SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
SAP NetWeaver Cloud Platform - Virtual Bootcamp - Part 2
 
SAP NetWeaver Cloud Platform - Virtual Bootcamp Introduction - Part 1
SAP NetWeaver Cloud Platform - Virtual Bootcamp Introduction - Part 1SAP NetWeaver Cloud Platform - Virtual Bootcamp Introduction - Part 1
SAP NetWeaver Cloud Platform - Virtual Bootcamp Introduction - Part 1
 
SAP NetWeaver Neo*: Community-Driven Development
SAP NetWeaver Neo*: Community-Driven DevelopmentSAP NetWeaver Neo*: Community-Driven Development
SAP NetWeaver Neo*: Community-Driven Development
 
Sap safe haborstatement
Sap safe haborstatementSap safe haborstatement
Sap safe haborstatement
 
SAP TechEd 2013: CD105: Extending SuccessFactors EmployeeCentral with apps on...
SAP TechEd 2013: CD105: Extending SuccessFactors EmployeeCentral with apps on...SAP TechEd 2013: CD105: Extending SuccessFactors EmployeeCentral with apps on...
SAP TechEd 2013: CD105: Extending SuccessFactors EmployeeCentral with apps on...
 
SAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - OverviewSAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - Overview
 

Ähnlich wie Securing SAP HANA Cloud Apps - Authentication, Authorization, SSO, Identity Federation

SAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming ModelSAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming ModelSAP Technology
 
CIS14: Enterprise Identity APIs
CIS14: Enterprise Identity APIsCIS14: Enterprise Identity APIs
CIS14: Enterprise Identity APIsCloudIDSummit
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforcedeimos
 
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe... 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...Onapsis Inc.
 
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform
 
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsExploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsOnapsis Inc.
 
SAP HANA Cloud: From Your Datacenter to the Cloud and Back
SAP HANA Cloud: From Your Datacenter to the Cloud and Back  SAP HANA Cloud: From Your Datacenter to the Cloud and Back
SAP HANA Cloud: From Your Datacenter to the Cloud and Back SAP HANA Cloud Platform
 
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...SAP HANA Cloud Platform
 
Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomQConLondon2008
 
SaaSfocus_Profile_s
SaaSfocus_Profile_sSaaSfocus_Profile_s
SaaSfocus_Profile_sShawn Murray
 
Tips to Remediate your Vulnerability Management Program
Tips to Remediate your Vulnerability Management ProgramTips to Remediate your Vulnerability Management Program
Tips to Remediate your Vulnerability Management ProgramBeyondTrust
 
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...Lucas Jellema
 
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...SAP HANA Cloud Platform
 
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow Up
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow UpHybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow Up
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow UpNicole Bray
 
SAP and Salesforce Integration
SAP and Salesforce IntegrationSAP and Salesforce Integration
SAP and Salesforce IntegrationGlenn Johnson
 
Software as Service
Software as ServiceSoftware as Service
Software as Serviceabhigad
 

Ähnlich wie Securing SAP HANA Cloud Apps - Authentication, Authorization, SSO, Identity Federation (20)

SAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming ModelSAP HANA SPS09 - XS Programming Model
SAP HANA SPS09 - XS Programming Model
 
CIS14: Enterprise Identity APIs
CIS14: Enterprise Identity APIsCIS14: Enterprise Identity APIs
CIS14: Enterprise Identity APIs
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
 
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe... 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
 
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsExploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
 
SAP HANA Cloud: From Your Datacenter to the Cloud and Back
SAP HANA Cloud: From Your Datacenter to the Cloud and Back  SAP HANA Cloud: From Your Datacenter to the Cloud and Back
SAP HANA Cloud: From Your Datacenter to the Cloud and Back
 
Saas security
Saas securitySaas security
Saas security
 
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...
SAP D-Code/TechEd 2014|DEV203|Extending SuccessFactors using SAP HANA Cloud P...
 
Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales Forcecom
 
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
SAP HANA Cloud - Virtual Bootcamp 7 - HANA Cloud Platform package for Success...
 
SaaSfocus_Profile_s
SaaSfocus_Profile_sSaaSfocus_Profile_s
SaaSfocus_Profile_s
 
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
 
Notes
NotesNotes
Notes
 
Tips to Remediate your Vulnerability Management Program
Tips to Remediate your Vulnerability Management ProgramTips to Remediate your Vulnerability Management Program
Tips to Remediate your Vulnerability Management Program
 
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...
Castle in the Clouds: SaaS Enabling JavaServer™ Faces Applications (JavaOne 2...
 
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...
SAP TechEd 2015 | DEV109 | Extending Cloud Solutions from SAP using SAP HANA ...
 
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow Up
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow UpHybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow Up
Hybrid Identity Made Simple - Microsoft World Partner Conference 2016 Follow Up
 
SAP and Salesforce Integration
SAP and Salesforce IntegrationSAP and Salesforce Integration
SAP and Salesforce Integration
 
Software as Service
Software as ServiceSoftware as Service
Software as Service
 

Mehr von SAP PartnerEdge program for Application Development

Mehr von SAP PartnerEdge program for Application Development (20)

SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform AnalyticsSAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
 
SUSE Technical Webinar – Get started with creating Lumira CVOM extensions -- ...
SUSE Technical Webinar – Get started with creating Lumira CVOM extensions -- ...SUSE Technical Webinar – Get started with creating Lumira CVOM extensions -- ...
SUSE Technical Webinar – Get started with creating Lumira CVOM extensions -- ...
 
SUSE Technical Webinar – Get started with creating Design Studio extensions -...
SUSE Technical Webinar – Get started with creating Design Studio extensions -...SUSE Technical Webinar – Get started with creating Design Studio extensions -...
SUSE Technical Webinar – Get started with creating Design Studio extensions -...
 
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
 
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
SUSE Technical Webinar: Developing Fiori & GWPAM Apps on HANA (SAP and SUSE C...
 
SUSE Technical Webinar: Build B1 apps in the Framework of the SAP and SUSE Ca...
SUSE Technical Webinar: Build B1 apps in the Framework of the SAP and SUSE Ca...SUSE Technical Webinar: Build B1 apps in the Framework of the SAP and SUSE Ca...
SUSE Technical Webinar: Build B1 apps in the Framework of the SAP and SUSE Ca...
 
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
 
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
 
SUSE Technical Webinar: Introduction to Business Intelligence - the SAP and S...
SUSE Technical Webinar: Introduction to Business Intelligence - the SAP and S...SUSE Technical Webinar: Introduction to Business Intelligence - the SAP and S...
SUSE Technical Webinar: Introduction to Business Intelligence - the SAP and S...
 
SUSE Technical Webinar: Build Cloud Apps with SAP HANA Cloud Platform
SUSE Technical Webinar: Build Cloud Apps with SAP HANA Cloud PlatformSUSE Technical Webinar: Build Cloud Apps with SAP HANA Cloud Platform
SUSE Technical Webinar: Build Cloud Apps with SAP HANA Cloud Platform
 
Partner with SAP to Develop Mobile apps and capture the Mobile Market Opportu...
Partner with SAP to Develop Mobile apps and capture the Mobile Market Opportu...Partner with SAP to Develop Mobile apps and capture the Mobile Market Opportu...
Partner with SAP to Develop Mobile apps and capture the Mobile Market Opportu...
 
Microsoft Technical Webinar: SAP Mobile Platform for Windows 8 and Windows Ph...
Microsoft Technical Webinar: SAP Mobile Platform for Windows 8 and Windows Ph...Microsoft Technical Webinar: SAP Mobile Platform for Windows 8 and Windows Ph...
Microsoft Technical Webinar: SAP Mobile Platform for Windows 8 and Windows Ph...
 
Microsoft Technical Webinar - New devices for Windows 8 and Windows Phone 8, ...
Microsoft Technical Webinar - New devices for Windows 8 and Windows Phone 8, ...Microsoft Technical Webinar - New devices for Windows 8 and Windows Phone 8, ...
Microsoft Technical Webinar - New devices for Windows 8 and Windows Phone 8, ...
 
Autodesk Technical Webinar: SAP Business One
Autodesk Technical Webinar: SAP Business OneAutodesk Technical Webinar: SAP Business One
Autodesk Technical Webinar: SAP Business One
 
Microsoft Technical Webinar: Doing more with MS Office, SharePoint and Visual...
Microsoft Technical Webinar: Doing more with MS Office, SharePoint and Visual...Microsoft Technical Webinar: Doing more with MS Office, SharePoint and Visual...
Microsoft Technical Webinar: Doing more with MS Office, SharePoint and Visual...
 
Mobile Apps 4 Charity
Mobile Apps 4 CharityMobile Apps 4 Charity
Mobile Apps 4 Charity
 
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - S...
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - S...Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - S...
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - S...
 
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - P...
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - P...Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - P...
Microsoft Technical Webinar: UX/UI Design for Windows 8 & Windows Phone 8 - P...
 
Autodesk Technical Webinar: SAP HANA in-memory database
Autodesk Technical Webinar: SAP HANA in-memory databaseAutodesk Technical Webinar: SAP HANA in-memory database
Autodesk Technical Webinar: SAP HANA in-memory database
 
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 3
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 3Autodesk Technical Webinar: SAP NetWeaver Gateway Part 3
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 3
 

Kürzlich hochgeladen

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 

Kürzlich hochgeladen (20)

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 

Securing SAP HANA Cloud Apps - Authentication, Authorization, SSO, Identity Federation

  • 1. Martin Raepple / Product Owner Identity and Access Management / SAP HANA Cloud Product Team SAP HANA Cloud – Virtual Bootcamp Securing SAP HANA Cloud Applications
  • 2. © 2012 SAP AG. All rights reserved. 2 Disclaimer This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP's strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent.
  • 3. © 2012 SAP AG. All rights reserved. 3 Agenda  Enabling Authentication  Enforcing Authorizations  Logout  Protecting from Common Web Attacks  Configuring local test user and roles  Using the local Test Identity Provider  Default Identity Federation with SAP ID Service  Identity Federation with the corporate Identity Provider  Role Assignments  Demo  Logging and Tracing  SAML Debugging Secure Cloud Application Development Security Troubleshooting Local Testing Testing in the Cloud Identity and Access Management in the Cloud
  • 5. © 2012 SAP AG. All rights reserved. 5 Enabling Authentication (1/4) High-level Architecture SAP HANA Cloud Application Identity Provider (IdP) SAP HANA Cloud Delegate authentication and identity management + Keep focused on the business logic Delegation to a central service (IdP) enables Single Sign-On (SSO) between multiple Cloud applications Mature and proven security standards for integration with IdP Three options: • Local IdP in the SAP HANA Cloud SDK  for Testing only! • SAP ID Service  „out-of-the-box“ IdP in the Cloud • Your own IdP (e.g. in the corporate network) + + Local User Store Central User Store +
  • 6. © 2012 SAP AG. All rights reserved. 6 Enabling Authentication (2/4) Declarative … <login-config> <auth-method>FORM</auth-method> </login-config> <security-constraint> <web-resource-collection> <web-resource-name>Protected</...> <url-pattern>/admin/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>Administrator</role-name> </auth-constraint> </security-constraint> <security-role> <description>Administration users</...> <role-name>Administrator</role-name> </security-role> web.xml: Supported Authentication Methods:  FORM  Delegates authentication to the SAP ID Service or another IdP according to the Security Assertion Markup Language (SAML) 2.0 protocol  BASIC  HTTP "basic" authentication scheme according to RFC 2617. Web browsers prompt users to enter a user name and password. The actual authentication is still delegated to the SAP ID service or to a SCIM*-compliant IdP * http://tools.ietf.org/html/draft-ietf-scim-api-01
  • 7. © 2012 SAP AG. All rights reserved. 7 Enabling Authentication (3/4) … and Programmatic String user = request.getRemoteUser(); if (user != null) { response.getWriter().println("Hello, " + user); } else { LoginContext loginContext; try { loginContext = LoginContextFactory.createLoginContext("FORM"); loginContext.login(); response.getWriter().println("Hello, " + request.getRemoteUser()); } catch (LoginException e) { e.printStackTrace(); } }
  • 8. © 2012 SAP AG. All rights reserved. 8 Enabling Authentication (4/4) Excursus: SAML-based Single Sign-On (SSO) 1. User accesses protected web resource on SP 2. SP sends SAML Authentication Request via HTTP redirect to trusted IdP 3. IdP authenticates the user (if not done already) 4. Upon successful authentication, IdP sends SAML Response (which includes the SAML Assertion) to the SAML Service Pro via HTTP POST User 3 1 2 4 SAML Request SAML Response 1 2 3 4 Identity Provider (IdP) SAP HANA Cloud Application SAP HANA Cloud Trust
  • 9. © 2012 SAP AG. All rights reserved. 9 Enforcing Authorizations protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(!request.isUserInRole("Administrator")){ response.sendError(403, "Logged in user does not have role Administrator"); return; } else { out.println("Hello administrator"); } }
  • 10. © 2012 SAP AG. All rights reserved. 10 Programmatic Logout public class LogoutServlet extends HttpServlet {... LoginContext loginContext = null; if (request.getRemoteUser() != null) { try { loginContext = LoginContextFactory.createLoginContext(); loginContext.logout(); } catch (LoginException e) { response.getWriter().println("Logout failed. Reason: " + e.getMessage()); } } else { response.getWriter().println("You have successfully logged out."); } }
  • 11. © 2012 SAP AG. All rights reserved. 11 Protecting from Common Web Attacks Cross-Site Scripting (XSS) Attack The two most important countermeasures to prevent XSS attacks are to: Constrain input Encode output SAP HANA Cloud XSS Output Encoding Library String encodedFirstname = null; IXSSEncoder xssEncoder = XSSEncoder.getInstance(); try { encodedFirstname = xssEncoder.encodeHTML(firstName).toString(); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } out.println("<br>Hello, " + encodedFirstname); Attacker Vulnerable Cloud Application Infects with malicious script 1 Downloads page with malicious script 2 Victim 3 executes script in the context of the Victim’s session
  • 12. © 2012 SAP AG. All rights reserved. 12 Protecting from Common Web Attacks Cross-Site Request Forgery (XSRF) Attack Attack depends on the predictability of the request URL to the vulnerable Application A countermeasure to prevent XSRF attacks is to generate and add a token or nonce per request which is checked on the server-side SAP HANA Cloud provides protection based on Apache Tomcat's CSRF Prevention Filter. web.xml: <filter> <filter-name>CsrfFilter</filter-name> <filter-class> org.apache.catalina.filters.CsrfPreventionFilter </filter-class> <init-param> <param-name>entryPoints</param-name> <param-value>/home</param-value> </init-param> </filter> Attacker‘s Web-Site <img src="http: //www.webapp.com/ transferMoney? account=hacker& amount=1000"> 1 Victim‘s Web Browser Vulnerable Application www.webapp.com 2 JSESSIONID=abc123 http://www.webapp. com/transferMoney? account=hacker& amount=1000
  • 14. © 2012 SAP AG. All rights reserved. 14 Configuring Test Users and Managing Roles on the Local Server SAP HANA Cloud Eclipse Tools: Servers view  Local Server  Users tab. Local Test Users Assigned Roles to the selected User in the local Server User Attribute and Values Local Server <local_server_dir>/config_master/ com.sap.security.um.provider.neo.local/ neousers.json SAP HANA Cloud Application
  • 15. Testing in the Cloud
  • 16. © 2012 SAP AG. All rights reserved. 16 Using the local Test Identity Provider neousers.json Local Server SAP HANA Cloud local Test Identity Provider SAP HANA Cloud Application Trust SAP HANA Cloud  The local test IdP is packaged within the SAP HANA Cloud SDK. When you start the local server, it will start as well.  Define local test IdP users and their attributes  Configuring the service provider of your account in SAP HANA Cloud  Configuring trust on SAP HANA Cloud to the local Test IdP  Configuring trust on the local Test IdP to SAP HANA Cloud  Access your application deployed on the SAP HANA Cloud and test it against the local test IdP and its defined users and attributes. 1 1 2 2 3 3 4 4
  • 18. © 2012 SAP AG. All rights reserved. 18  SAP ID Service User ID  Validated E-Mail Address  First Name, Last Name, Display Name Default Identity Federation with SAP ID Service SAP HANA Cloud Application SAP ID Service SAP HANA Cloud + By default, SAP HANA Cloud applications delegates authentication and identity management to SAP ID Service. No further configuration for the Trust Relationship is required. SAP ID Service is a public, SAML 2.0- compliant Identity Provider in the Cloud. It manages ~4.2 Million Users (e.g. for the SAP Community Network) With SAP ID Server, users can benefit from SSO to other SAP On-Demand solutions and web sites +  SAP Public Web Sites (SAP.com, SMP)  SAP Business ByDesign  SAP JAM  … Cloud Trust + SSO ~4.2 Million Users +
  • 19. © 2012 SAP AG. All rights reserved. 19 Identity Federation with the corporate Identity Provider Corporate IdP Employees CorporateNetwork SAP HANA Cloud Application SAP HANA Cloud Trust + SSO Trust + SSO + SAP HANA Cloud applications can delegate authentication and identity management to an existing Corporate IdP that can for example authenticate your company's employees. Trust must be configured similar to the local Test IdP scenario:  Configuring the service provider of your account in SAP HANA Cloud  Configuring trust on SAP HANA Cloud to the Corporate IdP  Configuring trust on the Corporate IdP to SAP HANA Cloud +  (Corporate-wide unique) User ID  any User Profile Attribute from the Corp. User Directory
  • 20. © 2012 SAP AG. All rights reserved. 20 Role Assignments in the Cloud Employees in Department Sales + Roles allow you to control the access to application resources in SAP HANA Cloud In the Cloud, you can assign Groups or individual users to a role Groups are collections of roles that allow the definition of business-level functions within your account. They are similar to the actual business roles existing in an organization SAP HANA Cloud Group Sales + + jdoe@acme.com Role Administrator Roles: CRM User Account Owner
  • 21. DEMO SSO and Identity Federation with a corporate Identity Provider (IdP)
  • 23. © 2012 SAP AG. All rights reserved. 23 Network Protocol Analyzer • Wireshark • Fiddler • SAML Tracer (Firefox Add-In)
  • 24. © 2012 SAP AG. All rights reserved. 24 SAP HANA Cloud Logs com.sap.core.jpaas.security.saml2.sp
  • 26. © 2012 SAP AG. All rights reserved. 26 Questions & Answers Q: Is there anything specific for securing REST services? A: Right now, REST clients calling services exposed by the same application from within the UI (e.g. SAP UI JavaScript using an OData Model) can re-use an already established logon session (e.g. via SAML2) of the user at the UI. Applications exposing (REST) services and no UI can use HTTP Basic Authentication via SSL at the moment to protect those services. For those scenarios we plan to support the Open Authorization Framwork (OAuth) in the SAP HANA Cloud Platform which helps to avoid storing the username and password in the Client application. Q: So once a user is authenticated in the browser, the browser based UI could use REST services? A: Yes!
  • 27. © 2012 SAP AG. All rights reserved. 27 SAP Hana Cloud Virtual Bootcamp Sessions Schedule Next upcoming bootcamp session  6th Virtual Bootcamp: Working with the HANA Cloud portal Overview of the features, capabilities and installation procedure Details and schedule will be provided soon. At the end of each session, we will give some time for Q&A. Remarks: ■ The Virtual Bootcamp sessions are scheduled for the developers of our Hana Cloud Applications partners and the community interested in our Hana Cloud Applications partner program. ■ The sessions will be recorded and provided to our Hana Cloud Partner community.
  • 28. Thank You! Contact information: Martin Raepple SAP HANA Cloud martin.raepple@sap.com