Blog

SAP Hana Rails App with SAP Authorization system

If you have a Rails application running on the SAP Hana platform the issue you may encounter is how to allow users to login with their SAP account. We’ve managed to accomplish it and we would like to share with you a small tutorial about how we did that.

We’ve used a FORM based SAP Hana authentication method. More about SAP authentication strategies you can find here.

First, if you are using warbler gem, you have to create a web.xml file to overwrite the web.xml file originally created by warbler. For my app the file looks like this:

Next, you’ll have to define a couple of methods in your controller to make SAP login authorization possible. Here is an example how I did it in my controller:

Then you only need to add your sap_test to your roots.rb and you are ready to go.

Ps - Wonder how to get your Rails app running on the SAP HANA Cloud Platform? All clear!

Photo by: startupstockphotos.com

Check our latest product - it's based on our experience of managing over 50-people strong company. The tool we're missing as a small company and not an enterprise.

humadroid.io is an employee and performance management software. It's an unique tool allowing everyone to be in the loop - by having up to date info about co-workers, time-off, benefits, assets, helping with one-on-ones, being a go-to place for company-wide announcements.

Check out humadroid.io
Top

Contact us

* Required fields

The controller of your personal data provided via this contact form is Prograils sp. z o.o., with a registered seat at Sczanieckiej 9A/10, 60-215 Poznań. Your personal data will be processed in order to respond to your inquiries and for our marketing purposes (e.g. when you ask us for our post-development, maintenance or ad hoc engagements for your app). You have the rights to: access your personal data, rectify or erase your personal data, restrict the processing of your personal data, data portability and to object to the processing of your personal data. Learn more.

Notice

We do not track you online. We use only session cookies and anonymous identifiers for the purposes specified in the cookie policy. No third-party trackers.

I understand
Elo Mordo!Elo Mordo!