on 12-13-2013 5:24 AM
Hello,
I have developed an SAPUI5 application that consumes an odata server. This odata service is running in a different server and it is secured service also which needs some credentials to access. Today I am using the simpleproxy to access this service and I am passing the username and password while calling the service and its working fine. I have two questions in this regard.
1. How do I address same orgin policy issue when deploying to the production or any other server? What are the best practices for this.
2. How do I pass the credentials for accessing the service? What are SAP's recomendation for this?
Regards
-Albin
Hello,
1. How do I address same orgin policy issue when deploying to the production or any other server? What are the best practices for this.
2. How do I pass the credentials for accessing the service? What are SAP's recomendation for this?
2nd - Refer SAPUI5 SDK - Demo Kit and html5 - SAPUI5 and Logon Tokens/SSO? - Stack Overflow
and also discussion in thread http://scn.sap.com/message/13440859
This may not be the complete answer but you will get more idea.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chandra,
Thank you for your response and the links.
#2. I am not sure how well the SSO works in my case. Some part of my web application is open to guest users without logging in. Even if the users are logged in, I don't think they exist in our Netweaver Gateway system or HANA system where our services are hosted. Also the other problem I see is that we need to expose these systems to the internet which I feel may not be a great idea.
Regards
-Albin
Hi Albin,
You can pass the credentials by using ajax post method.. You can get logon token by ajax post method and you can add logon token in your URL. This works for passing credentials.
And for same origin policy check this..
Regards,
Surendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.