Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Outbound Single Sign-on Timestamp issues with .NET
I've been working on getting Outbound Single Sign-on handshake to work with a ASP.NET application for quite a while now with no success.
The current error I'm getting is "timestamp_refused", how do I get this timestamp to be what NetSuite is expecting it to be?
Here is the C# code I use to generate the timestamp:
string TimeStamp = Convert.ToDouble( DateTime.Now.ToUniversalTime().Subtract( new DateTime(1970, 1, 1).ToUniversalTime()).TotalMilliseconds).ToString("#############");Here is the raw header I captured using Fiddler2 (notice the oauth_timestamp is different here than the one that netsuite is expecting):
GET https://system.netsuite.com/app/common/integration/ssoapplistener.nl
0