Hi Maciej, Thank you for the response. It makes sense that the demo would only accept "http://localhost:8080/redirect" as the redirect uri since they would want the content provider to redirect back to the demo application. The problem is that Microsoft is not letting me put in this value as the redirect uri during client registration. Commenting out the validation did take me to the Windows login page. That was one step closer for me ☺.
Thanks, Jude. Iowa Workforce Development – IT | 1000 E Grand Ave, Des Moines, IA 50319 (515) 281-3378 | ashwanth.tiburt...@iwd.iowa.gov<mailto:ashwanth.tiburt...@iwd.iowa.gov> From: Maciej Machulak [mailto:maciej.machu...@gmail.com] Sent: Thursday, January 08, 2015 4:22 PM To: user@oltu.apache.org Subject: Re: Microsoft OAuth2 Question Hi, Have you used similar redirect uri for Google? One of the classes in the demo (see https://svn.apache.org/repos/asf/oltu/trunk/demos/client-demo/src/main/java/org/apache/oltu/oauth2/client/demo/Utils.java) has the following: if (!REDIRECT_URI.equals(redirectUri)) { sb.append("Redirect URI"); } where REDIRECT_URI is "http://localhost:8080/redirect" Cheers, Maciej On 8 January 2015 at 22:41, Tiburtius, Ashwanth [IWD] <ashwanth.tiburt...@iwd.iowa.gov<mailto:ashwanth.tiburt...@iwd.iowa.gov>> wrote: Hi, I am doing a poc to use Apache Oltu for user authentication against Google, Microsoft and Yahoo. I was able to successfully use the client demo provided by Apache Oltu to authenticate a user in Google using gmail credentials and also retrieve user information. But I am running into issues while trying to do the same for Microsoft. Following are the details I have entered but I keep getting the error “Error: Incorrect parameters: Redirect URI” even though the redirect uri matches the one configured in the API settings in Microsoft Development Center. This could be a Microsoft question but I would highly appreciate any help that you can provide. Google was quit straight forward to setup and execute but Microsoft is confusing to say the least. Hoping Apache Oltu would make life easier. Requested Access Scope: wl.signin End-User Authorization URL: https://login.live.com/oauth20_authorize.srf Token Endpoint: https://login.live.com/oauth20_token.srf Client ID: <Correct value entered> Client Secret: <Correct value entered> Redirect URI: http://iwd.gov/profile/register (This is the value entered in the API settings) Thanks, Jude. Iowa Workforce Development – IT | 1000 E Grand Ave, Des Moines, IA 50319 (515) 281-3378 | ashwanth.tiburt...@iwd.iowa.gov<mailto:ashwanth.tiburt...@iwd.iowa.gov> -- Maciej Machulak email: maciej.machu...@gmail.com<mailto:maciej.machu...@gmail.com> mobile: +44 7999 606 767 (UK) mobile: +48 602 45 31 66 (PL)