Skip to Content
author's profile photo Former Member
Former Member

To authenticate ODATA services in SAP gateway server via Key (not user id and pwd)

Hi Experts,

I have a standalone Android and IOS app designed and installed in mobile device. I have a requirement now to hit SAP gateway server for fetching records using Odata, and the authentication with gateway Odata should happen by passing key generated during registration of user. We don't want to use traditional method of sending user id and password.

So, the flow is like this

1. first time. user enters user id, password, and Secret key (Soft Token). register the user with Key. Server Stores this key for authentication and will remain constant.

2. Next time, user should only use the key and not user id and password. The server should be authenticate to registered user based on this key in gateway server to fetch record via odata.

Please note, this is a standalone application installed in Mobile device, and not fiori browser based.


It would greatly help if you can kindly advice on how to use Key for authentication process.

Thanks in Advance.

-Shabir Rahim

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 13, 2015 at 07:37 AM

    Hi Shabir,

    I am not sure whether this is possible in your case.

    Since you are using a Odata to communicate, you should be using HTTP requests. You need to check what is possible with these requests. Odata is an open standard.

    If you are using a third party solution for soft tokens, you might get a library to add to your mobile app project to support such scenarios.

    If you use SMP or HCPms there are in built standard security mechanisms - http://help.sap.com/saphelp_smp308svr/helpdata/en/7c/2f1b0770061014980f88650f442ca1/content.htm

    Regards, Midhun

    SAP Technology RIG

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.