I created a single Web application based on Visual Studio 2012 Web application template and tried to test OAuth which is added OOB. I went to the following link to register my application and get a client id.
https://manage.dev.live.com/Applications/Index
OpenAuth.AuthenticationClients.AddMicrosoft always generates: The provided value for the input parameter 'redirect_uri' is not valid. The value must be an absolute URL whose scheme is http:// or https://.
but if I follow this article I can log in without problem. (by adding iframe and so on)