SF 5.1 - Using Claims Authentication via web services, first

Posted by Community Admin on 04-Aug-2018 04:36

SF 5.1 - Using Claims Authentication via web services, first call succeed, subsequent calls fail with 403 forbidden?

All Replies

Posted by Community Admin on 29-Aug-2012 00:00

Hey All,
So we have a small basic MVC application that is sitting outside of sitefinity. We are using HttpWebRequest calls to: localhost:65353/.../Authenticate to authenticate. This returns our security token which I have been able to successfully use to call the Pages service. The code we are using is basically the same as the following blog post:

The problem we are experiencing is that when the MVC application is restarted, we authenticate again because we have lost that security token. The authentication calls returns are new token, however using the new token to make calls to the Pages service fails with:
The remote server returned an error: (403) Forbidden.

Am I missing something fundamental here? How come im getting forbidden with the new token??

As a side note: If I save the token to notepad and retry the request with the original token we have no issues. 

This thread is closed