+1-888-365-2779
Try Now
More in this section

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

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

1 posts, 0 answered
  1. Joel
    Joel avatar
    6 posts
    Registered:
    22 Aug 2012
    29 Aug 2012
    Link to this post
    Hey All,
    So we have a small basic MVC application that is sitting outside of sitefinity. We are using HttpWebRequest calls to: http://localhost:65353/sitefinitypoc/Sitefinity/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:
    http://blog.falafel.com/Blogs/noel-rice/2012/03/28/using-sitefinity-5-claims-authentication 

    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. 
1 posts, 0 answered