IdentityModel / AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
Other
281 stars 136 forks source link

Http Error Reason Not Found Error #240

Closed kargenc closed 9 years ago

kargenc commented 9 years ago

OAuth2Client client = new OAuth2Client( new Uri("https://xxxx/users/oauth2/token"), "test", "test1234");

        var response = client.RequestResourceOwnerPasswordAsync("test","test1234","read").Result;

in the response httperrorreason = "Not Found"

AS work with Identity Server v2

kargenc commented 9 years ago

when debug i get error message at OAuth2Client.cs and Method public async Task RequestAsync(Dictionary<string, string> form) { var response = await _client.PostAsync(string.Empty, new FormUrlEncodedContent(form)).ConfigureAwait(false);

{https://xxxx:9444/aaaaa/oauth2/token} this server is xxxx running and healhtly aaaaa is my application definition in AS

kargenc commented 9 years ago

i think "oauth2" is wrong when i see webapi config file i see it "oauth" but when i try like that i get a Internal Server Error

OAuth2Client client = new OAuth2Client( new Uri("https://kargencm-pc/authz/users/oauth/token"), "roclient", "secret");

        var response = client.RequestResourceOwnerPasswordAsync(
            "test",
            "test1234",
            "read").Result;
kargenc commented 9 years ago

it's totaly my fault but i was tired, 1 week hard work on AS + IdentityServer on Desktop Applications. i change true values in autofac.config and everthing seems ok :) sorry about that <parameter name="address" and <parameter name="issuerThumbprint"

kargenc commented 9 years ago

in sample "oauth2" url is wrong.