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.

Note: You can disable authentication checks with the null options, as follows: {"authentication" :<br />

null}.<br />

authorization<br />

{<br />

}<br />

"authorization":<br />

[<br />

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

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

]<br />

The authorization keyword in the .xsaccess file enables you to specify which authorization level is required for<br />

access to a particular application package, for example, execute or admin on the package sap.xse.text.<br />

Note: The authorization levels you can choose from are defined in the .xsprivileges file for the<br />

package, for example, "execute" for basic privileges, or "admin" for administrative privileges on the<br />

specified package. If you use the authorization keyword in the .xsaccess file, for example, to require<br />

“execute” privileges for a specific application package, you must create a .xsprivileges file for the<br />

same application package (or a parent package higher up the hierarchy, in which you define the “execute”<br />

privilege level declared in the .xsaccess file.<br />

rewrite_rules<br />

}<br />

{<br />

"rewrite_rules" :<br />

[{<br />

"source" : "...",<br />

"target" : "..."<br />

}]<br />

The rewrite_rules keyword enables you hide the details of internal URL paths from external users, clients, and<br />

search engines. Any rules specified affect the local application where the .xsaccess file resides (and any<br />

subpackage, assuming the subpackages do not have their own .xsaccess files); it is not possible to define global<br />

rewrite rules. URL rewrite rules are specified as a source-target pair where the source is written in the JavaScript<br />

regex syntax and the target is a simple string where references to found groups can be inserted using<br />

$groupnumber.<br />

mime_mapping<br />

{<br />

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

Setting Up Your Application<br />

"mime_mapping" :<br />

[<br />

{<br />

"extension":"jpg", "mimetype":"image/jpeg"<br />

}<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!