--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/cVlQ5Fb6yeQJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
I'm on 4.1.
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
It is null for IAuthorizationServerHost.IsResourceOwnerCredentialValid and IAuthorizationServerHost.IsAuthorizationValid. The latter then returns false. From the looks of things, the client id isn't passed to the server when calling WebServerClient.ExchangeUserCredentialForToken from the client.
My question is how to authenticate the client (using WebServerClient) before making a call to WebServerClient.ExchangeUserCredentialForToken.
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
[TestMethod]
public void ResourceOwnerGrant()
{
var description = new AuthorizationServerDescription
{
AuthorizationEndpoint = new Uri("http://api.example.com/oauth/authorize"),
TokenEndpoint = new Uri("http://api.example.com/oauth/token"),
};
var client = new WebServerClient(description, "Zwt68a7", "ZJ76opguW");
var token = client.ExchangeUserCredentialForToken("bob", "Password1");
Assert.IsNotNull(token);
Assert.IsNotNull(token.AccessToken);
Assert.IsTrue(token.AccessTokenExpirationUtc > DateTime.UtcNow.AddMinutes(1));
Assert.IsTrue(token.AccessTokenIssueDateUtc <= DateTime.UtcNow);
}
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/rLiakmKB0XsJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
QTAgent32.exe Information: 0 : Received AccessTokenSuccessResponse response.
Trace on the server:
w3wp.exe Information: 0 : Incoming HTTP request: POST http://api.example.com/oauth/token
w3wp.exe Information: 0 : The following required parameters were missing from the DotNetOpenAuth.OAuth2.AuthServer.Messages.AccessTokenRefreshRequestAS message: {refresh_token,
}
w3wp.exe Information: 0 : The following required parameters were missing from the DotNetOpenAuth.OAuth2.Messages.AccessTokenAuthorizationCodeRequestAS message: {code,
}
w3wp.exe Information: 0 : The following required parameters were missing from the DotNetOpenAuth.OAuth2.Messages.EndUserAuthorizationRequest message: {client_id,
response_type,
}
w3wp.exe Information: 0 : The following required parameters were missing from the DotNetOpenAuth.OAuth2.Messages.EndUserAuthorizationImplicitRequest message: {response_type,
client_id,
}
w3wp.exe Information: 0 : The following required parameters were missing from the DotNetOpenAuth.OAuth2.Messages.EndUserAuthorizationFailedResponse message: {error,
}
w3wp.exe Information: 0 : Incoming request received: AccessTokenResourceOwnerPasswordCredentialsRequest
w3wp.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.TokenCodeSerializationBindingElement did not apply to message.
w3wp.exe Information: 0 : User `bob` successfully sign in
w3wp.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.MessageValidationBindingElement applied to message.
w3wp.exe Information: 0 : Preparing to send AccessTokenSuccessResponse (2.0) message.
w3wp.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.MessageValidationBindingElement did not apply to message.
w3wp.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.TokenCodeSerializationBindingElement did not apply to message.
w3wp.exe Information: 0 : Sending message: AccessTokenSuccessResponse
Werner
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/2TXJST3-9fUJ.
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/Bu_6fnDaFoUJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
<appender name="TraceAppender" type="log4net.Appender.TraceAppender">
<layout type="log4net.Layout.PatternLayout"></log4net>
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/1YJ-zQ800iMJ.