#600 Update the Twitter AuthenticationEndpoint

This commit is contained in:
Chris R 2015-12-02 11:51:43 -08:00
parent a18181d363
commit 92c479869b
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ namespace Microsoft.AspNet.Authentication.Twitter
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
private const string StateCookie = "__TwitterState";
private const string RequestTokenEndpoint = "https://api.twitter.com/oauth/request_token";
private const string AuthenticationEndpoint = "https://twitter.com/oauth/authenticate?oauth_token=";
private const string AuthenticationEndpoint = "https://api.twitter.com/oauth/authenticate?oauth_token=";
private const string AccessTokenEndpoint = "https://api.twitter.com/oauth/access_token";
private readonly HttpClient _httpClient;

View File

@ -148,7 +148,7 @@ namespace Microsoft.AspNet.Authentication.Twitter
var transaction = await server.SendAsync("http://example.com/challenge");
Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
var location = transaction.Response.Headers.Location.AbsoluteUri;
Assert.Contains("https://twitter.com/oauth/authenticate?oauth_token=", location);
Assert.Contains("https://api.twitter.com/oauth/authenticate?oauth_token=", location);
}
private static TestServer CreateServer(Action<TwitterOptions> configure, Func<HttpContext, bool> handler = null)