-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated call of HTML5 app causes "Sorry, a technical error occurred! Please try again later." error #6
Comments
Seems the change ca06512 had no effect on the behaviour when accessing / |
OK, I've found the documentation: Authentication with a sample coding. But where should that be integrated? In every XHR call? There are done by the SAPUI5 framework. |
Repeated test of fix ca06512 in Chrome and Safari on Mac OS worked. But Firefox on Mac and on Android Firefox and Chrome run into the same issue. Now testing on Windows with Edge, Chrome, Firefox and IE 11. |
Most of SAPs applications just refresh the browser when the SAML token is expired. That forces a re-auth. Otherwise you indeed probably would have to subclass the ODataModel and add a result-check/re-auth/retry to the read method. |
On Windows 10: Edge, Chrome and IE 11 did no re-authentication. Firefox did. |
@jpenninkhof Any sample code doing the refresh when the SAML token is expired? |
@gregorwolf Sorry, I'm afraid I don't have anything I can share atm. |
By deleting the session cookies using Chrome Dev Tools -> Resources -> Cookies there is a quick way to reproduce the issue. When setting a breakpoint in "this._oModel.attachMetadataFailed(function (oEvent) {" of controller/ErrorHandler.js I can discover that oEvent.mParameters.response.headers["com.sap.cloud.security.login"] has the Value "login-request". So I will use that to trigger window.location.reload();. I think it would make sense if SAP improves the SAP Web IDE templates or the documentation. |
The immediate problem is fixed. But if we could use an iFrame to do the SAML authentication and then try calling the service again the screen would not refresh completely for the user. But that can be an issue when the user is no longer logged on. |
Yesterday I've accessed the alpha test page at:
https://sitregparticipant-s0001142741trial.dispatcher.hanatrial.ondemand.com/
using Firefox without any problems. I was first redirected to:
https://accounts.sap.com/saml2/idp/sso/accounts.sap.com
so I had to authenticate. But today I was taken directly to the app and that resulted in the error "Sorry, a technical error occurred! Please try again later."
In the details the following is shown:
We must find a way to enforce the re-authentication even if caching of the page was still valid.
The text was updated successfully, but these errors were encountered: