Hi,
I am trying to develop OAuth 2.0 server that will use internal user authentication and authorization of the client application.
In order to check the server I am using OAuthConsumerWpf application provided with the samples.
Everything working just fine until the last stage of the returning the auth token back to client. The client sends returnUrl to be http://localhost/ and then after the process of user authentication and authorization finishes, the server redirects the response.
The log of the server produces the following:
WebDev.WebServer40.exe Information: 0 : Incoming request received: EndUserAuthorizationRequest
WebDev.WebServer40.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.TokenCodeSerializationBindingElement did not apply to message.
WebDev.WebServer40.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.MessageValidationBindingElement applied to message.
WebDev.WebServer40.exe Information: 0 : Preparing to send EndUserAuthorizationSuccessAuthCodeResponseAS (2.0) message.
WebDev.WebServer40.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.MessageValidationBindingElement did not apply to message.
WebDev.WebServer40.exe Information: 0 : DotNetOpenAuth.Messaging.Bindings.ICryptoKeyStore.GetKeys returned no keys for bucket "https://localhost/dnoa/oauth_authorization_code" with the required key length of 256 bits. A new key will be created
WebDev.WebServer40.exe Information: 0 : Binding element DotNetOpenAuth.OAuth2.ChannelElements.TokenCodeSerializationBindingElement applied to message.
WebDev.WebServer40.exe Information: 0 : Sending message: EndUserAuthorizationSuccessAuthCodeResponseAS
WebDev.WebServer40.exe Information: 0 : Redirecting to http://localhost/?code=E7dl%21IAAAAJl4CfH60tn5k5PONt4tDaXMg_WOjIOSyEB8DCMYNabiEQEAAAGJeKeZoc-32fbJvV-cz_ZnYlulRNrMv7aEfPVY9hdAT_kMEwjucnEh_LPC7Omz8KzRY8zArAUjwF6ZZkZ5DSb8Uw0aec4Hnpj0pxR4kHJ74pJrJ4CR43HnlAwYJ2oOTFofDUl2rMmV4ioFihMTsEoE7uZLvqp2yd536bZHkoWwIpK5Vu-ggSO8dX2gJLwPxpvwZmI9Jhf2mOjsWdlWXHzIRFtwmInRkwZv08o1RwZx2k_1xoV6rIcN-IMEoRkBriT5hY4TO0S8ksoT-sjYv1M4ALRlItPnaZDcZP0Lrr7Oz7scj60AE8gk2NniMg10ittwZ8ntwg5vrKUPlns9LoONk4QlK5nr1jP_2X6-ZldkjQ
The problem is that no one listens on the port 80, thus the ClientAuthorizationView embedded in the dialog fails to navigate to the specified URL. As far as I understand it, I have no control in the OAuthConsumerWpfon the returnUrl parameter without changing the code of the client.
Please advice what am I missing and what should be done to fix it.
Thanks in advance
Vadim
--
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/-/SpsA_VganOIJ.
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.
- Sean
Thanks, Oyvind.
To unsubscribe from this group, send email to dotnetopenid+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
--
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+unsubscribe@googlegroups.com.
--
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+unsubscribe@googlegroups.com.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/kxkxXDvWc-MJ.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/Y7nfMSSDk54J.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
I've just been stuck on this as well... I ran into trouble because I found that first request failed for lack of an authentication header (as already noted) but then the second request (now authenticated) was failing because the INonceStore was returning false because the same entry was already recorded by the first request. For some reason the sample code (with the DatabaseKeyNonceStore) doesn't seem to have a problem with this even though the values passed to StoreNonce are exactly the same on both requests; my custom implementation was returning false on the second response which seems to be what it SHOULD do. Is this the expected behavior with StoreNonce? Should DNOA be calling StoreNonce twice for both the unauthenticated AND the authenticated request with the same values both times?
- Sean
Thanks, Oyvind.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
--To post to this group, send email to dotnet...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
--To post to this group, send email to dotnet...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
--To post to this group, send email to dotnet...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
--
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/-/kxkxXDvWc-MJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
--
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/-/mngIWxKCCHIJ.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/hFHFG_Bm-HsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/LSytdovrV54J.