28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Create the application access file.<br />

The application-access file must be a JSON-compliant file with the file suffix .xsaccess. Note that the<br />

application-access file does not have a name before the dot (.); it only has the suffix .xsaccess.<br />

Create a file called .xsaccess and place it in the package containing the application to which you want to<br />

enable accesss. A basic .xsaccess file must, as the very least, contain a set of curly brackets, for example,<br />

{}. Note that the .xsaccess file uses keyword-value pairs to set access rules; if a mandatory keyword-value<br />

pair is not set, then the default value is assumed.<br />

2. Enable application access to data.<br />

You use the expose keyword to enable or disable access to content at a package or subpackage level.<br />

{<br />

}<br />

"exposed" : true<br />

3. Define the application authentication method.<br />

You use the authentication keyword to define how to manage the authentication process for requests to<br />

access package content, for example, <strong>SAP</strong> logon ticket, form-based logon, or a basic user name and<br />

password .<br />

{<br />

}<br />

"authentication" :<br />

[<br />

{ "method" : "Basic" }<br />

]<br />

4. Specify the application privileges.<br />

Use the authorization keyword in the .xsaccess file to specify which authorization level is required by a user<br />

for access to a particular application package. The authorization levels you can choose from are defined in<br />

the .xsprivileges file, for example, "execute" for basic privileges or "admin" for administrative privileges<br />

on the specified package.<br />

{<br />

}<br />

"authorization":<br />

[<br />

"sap.xse.test::Execute",<br />

"sap.xse.test::Admin"<br />

]<br />

5. Specify the client connection security.<br />

You use the force_ssl keyword to enforce the use of secure HTTP (SSL/HTTPS) for client connections.<br />

Browser requests that do not use SSL/HTTPS are refused and the 403 Forbidden page is displayed.<br />

{<br />

}<br />

Note: You need to ensure the <strong>SAP</strong> Web Dispatcher is configured to accept and process HTTPS<br />

requests.<br />

"force_ssl" : true<br />

6. Define the MIME mapping to be used for specific file extensions. (Optional)<br />

58<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Your Application

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!