Skip to Content
0

OAuth Access Permission Request Screen (Access to OData Services)

Oct 21, 2016 at 03:24 PM

43

avatar image

I have a scenario wherein a custom .NET Web Application (MVC) needs to call an SAP OData Service behind the scenes. We have decided to use OAuth 2 Authentication for that service call and the .NET Application is using the Authorization Code Flow internally to get the token. We have followed this Wiki article to get the token.

The problem we are facing during the Token Retrieval, the user is getting an access request prompt each time as below

The problem is that this prompt is being generated each and every time the the token is being retrieved. I was hoping that this prompt would come in only on the first time the user token is being retrieved and his approval/rejection would be "remembered" on the subsequent token retrievals. That is what happens with Facebook, for example.

So the question is, is there anyway we can suppress this prompt? Or is there anyway we can have the user grant approval permanently, maybe through SAP Transactions?

Looking forward to the response.

c1.png (41.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers