C# - not receiving OTCSTicketExpires header?
Best Answer
-
Update - of course, this was my error :-(
For whatever reason, I was looking at httpResponseMessage.Content.Headers. BUT I really should've been looking at httpResponseMessage.Headers!
And of course, the ticket was there, every time.
Mystery solved, hopefully this will help others :-)
0
Answers
-
my gut feel tells me that OT designed that in this way.
- The first request to /auth returns otcsticket:nnnnnnn
- Code performs api call like /nodes returns api result as well as refreshed ticket otcsticket:nlnlnlnl
- Another api with the otcsticket:nlnlnlnl perhaps versions returns result and otcsticket:nlmnlmnlm
I think OT wants you to chain the tickets and not use just the first authentication
The SOAP implementation had a valid TTL,I do not fully know if that is applicable for REST.
This is just my thought you might be better informed to ask through a ticket…
0 -
Well, this is definitely not the behavior that I see, even in Postman. When I use the ticket issued by "auth", there is no new/refreshed ticket being returned. I do see the OTCSTicketExpires header in each response, as well as OTCSTicket header, BUT it's the same value as in the request. My C# code on the other hand, gets none of the two headers above…
0 -
@GinoDivx I do not have access to code or API design of OT so my answer may not be correct. Why don't you ask OT? AFAIk in this API call OT Documentation does not specify headers returned it just says you will receive a ticket so the anomaly may better be answered by someone at OT
0 -
Update - of course, this was my error :-(
For whatever reason, I was looking at httpResponseMessage.Content.Headers. BUT I really should've been looking at httpResponseMessage.Headers!
And of course, the ticket was there, every time.
Mystery solved, hopefully this will help others :-)
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax