The requirement is to set timeout for a cart in spartacus storefront. I am trying to achieve by setting the value as oauth2.refreshTokenValiditySeconds=1000 in local.properties but it is not working. Is there any way to achieve this.
Related
For a test case, I want to log the full request and/or response header of a testcafe test with the RequestLogger.
Is this possible? By default, only some basic information is logged.
Thanks
Make sure to enable the necessary options that are disabled by default when you create a request logger:
If any information is missing, specify what it is and why you need it.
I have an app that uses AFNetworking to log the user in to a web service. I want to load a WKWebView using the same session as that one being stored in the AFNetworking GET/POSTS to my webservice but google has failed me so far. Can anybody point me in the right direction?
I can no doubt get the session id from AFNetworking and manually pass it to my NSURLRequest for my WKWebView, but that seems a bit too manual, or is that the right way to do it?
Thanks in advance!
I'm developing an application with React Native that connects to Sharepoint Online. I'm able to log into SPO and use "fetch" to get lists' content through the HTTP-Only/Secure cookies rtFa and FedAuth that are automatically set from login response.
Now, I would like to download files from SPO. I found these plugins: react-native-fetch-blob and react-native-fs. However, when I try to download a file, I get "Access denied. You do not have permission to perform this action or access this resource.".
I guess the problem is that the cookies (rtFa & FedAuth) are not passed to the fetch function of these plugins and I can't set them as they are HTTP-Only/Secure. Any ideas how to resolve this issue without writing native code?
Any help would be greatly appreciated!
I found a solution by contacting the developer of react-native-fetch-blob. The problem was due to no cookies mechanism, he kindly added one.
For more information: https://github.com/wkh237/react-native-fetch-blob/issues/156
I am trying to create a LinqPad connection to a SharePoint Server's List Services. I have selected WCF Data Services 5.1 (OData 3) as the data context and http://sharepoint.host.com/_vti_bin/Lists.asmx as the URL
I get the following error: XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.
It doesn't matter if I use credentials or not.
What is the cause of this error? What is the soure of this error? I don't see how I can change the property in XmlReaderSettings.
Is this a security configuration on the server? Is there a solution or workaround to this problem?
Please try to connect to /_vti_bin/ListData.svc
I cannot seem to debug a restlet. I keep getting the error:
INVALID_HOST
Invalid host debugger.netsuite.com. Please send RESTlet requests to https://rest.netsuite.com/.
Even though my deployment list the external URL as:
https://debugger.netsuite.com/app/site/hosting/restlet.nl?script=58&deploy=1 and its status is "Testing"
I log into debugger.netsuite.com, click to use an existing script and it provides me with a cookie. I add this cookie to my HTTP request header and am still returned the above error.
The request header I'm sending is:
Cookie: NS_VER=2012.1.0; JSESSIONID=$session_id
Content-Type: application/json
Authorization: NLAuth nlauth_account=$account_id,nlauth_email=$email,nlauth_signature=$password,nlauth_role=
Does anyone know why I can't connect to the debugger?
As mentioned above, having an "Authorization" header along with the Cookie will produce the error you see. Also, make sure of the following:
The RESTlet is deployed in "testing" mode
You are the owner of the RESTlet
Your Netsuite account is enabled for debugging. Not 100% sure on this, but I have two logins, and only one was able to successfully debug a RESTlet.
You may not need this any more but the NetSuite online Help has a page specifically addressing how to debug your RESTlet in the NetSuite Debugger. It describes the process as logging into the Debugger server, then clicking "Debug Existing", then letting your script run. This way, the debugger knows how to help you. Your way, you're trying to run the script through the debugger server but not giving it a chance to grab that script's execution and control it.
Hope this helps.
Look for Advanced Rest Client in the google webstore. The service is free and works very well when debugging Netsuite Restlet.
Your on the right track. You just have to remove your Authorization data as you are already using the Cookie from Debugger to authenticate.
This solution is already available as well in SuiteAnswers