In my handler code trying to return the redirect response with necessary openid headers/body to do the user-agent redirection to do the authentication, but when I set the return response with HTTPEntity in the Operation result I get 406 Not acceptable on the client? What is wrong with that? The following code is not complete and is of prototype quality!
Here is the my handler code:
private static OpenIdRelyingParty openid = new OpenIdRelyingParty();
public OperationResult Get(string contentId)
{
var response = openid.GetResponse();
Identifier id;
Identifier.TryParse("https://www.google.com/accounts/o8/id", out id);
OutgoingWebResponse owr = openid.CreateRequest(id).RedirectingResponse;
HttpEntity he = new HttpEntity(new HttpHeaderDictionary(owr.Headers), owr.ResponseStream);
return new OperationResult.SeeOther { ResponseResource = he };
}