Return-Path: X-Original-To: apmail-oltu-user-archive@www.apache.org Delivered-To: apmail-oltu-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C362C10B6B for ; Thu, 8 Jan 2015 22:24:19 +0000 (UTC) Received: (qmail 62991 invoked by uid 500); 8 Jan 2015 22:24:21 -0000 Delivered-To: apmail-oltu-user-archive@oltu.apache.org Received: (qmail 62960 invoked by uid 500); 8 Jan 2015 22:24:21 -0000 Mailing-List: contact user-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@oltu.apache.org Delivered-To: mailing list user@oltu.apache.org Received: (qmail 62945 invoked by uid 99); 8 Jan 2015 22:24:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 22:24:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of maciej.machulak@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 22:24:17 +0000 Received: by mail-la0-f52.google.com with SMTP id hs14so12241183lab.11 for ; Thu, 08 Jan 2015 14:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=devFscZLoQ9xERsThLRONOUy8wrgmVpWMgQ8DtXPUdM=; b=BHhlxPuF/FsoRW5UlTD2PdYw1bkZEjhCuGzncXAuztRI+XUnAnpIAVO7C0RltIan/u +8XtjD887lmtiVJGqNtG38jQBgJA+shsFAFDOCB6Rh1TBJUStwmIz46gDjGqlQ32dJln GdB7gkbNijRKxUOK+KNjURGYhpQp8V3kESoqqk3MmirfuBc0onWcwo1LOB07BVN0HAGp nOxZvb59lr+7zUL7+mViegIAZDY9RbXPdtiGD4O2ZbowHBKKS1z2K9f5B1krojtVJXi/ WP+p+DlCg2FhTVrZ9obvchgZ9DPWupx69E4h3Haksl3fVmkhlK1CL63ggbkSInwboK/D Yzrg== MIME-Version: 1.0 X-Received: by 10.112.119.139 with SMTP id ku11mr13032132lbb.76.1420755745729; Thu, 08 Jan 2015 14:22:25 -0800 (PST) Received: by 10.25.148.20 with HTTP; Thu, 8 Jan 2015 14:22:25 -0800 (PST) In-Reply-To: References: Date: Thu, 8 Jan 2015 23:22:25 +0100 Message-ID: Subject: Re: Microsoft OAuth2 Question From: Maciej Machulak To: user@oltu.apache.org Content-Type: multipart/alternative; boundary=047d7bb0453089755f050c2b7982 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb0453089755f050c2b7982 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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.Tiburtius@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 de= mo > 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 detai= ls > I have entered but I keep getting the error =E2=80=9CError: Incorrect par= ameters: > Redirect URI=E2=80=9D even though the redirect uri matches the one config= ured in > the API settings in Microsoft Development Center. This could be a Microso= ft > 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: * > > *Client Secret: * > > *Redirect URI: *http://iwd.gov/profile/register (This is the value > entered in the API settings) > > > > Thanks, > > Jude. > > Iowa Workforce Development =E2=80=93 IT | 1000 E Grand Ave, Des Moines, I= A 50319 > > (515) 281-3378 | Ashwanth.Tiburtius@iwd.iowa.gov > > > --=20 Maciej Machulak email: maciej.machulak@gmail.com mobile: +44 7999 606 767 (UK) mobile: +48 602 45 31 66 (PL) --047d7bb0453089755f050c2b7982 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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.j= ava) has the following:

        if (!REDIRECT_U=
RI.equals(redirectUri)) {
            sb.append("Redirect URI");
        }
where REDIRECT_URI is=C2=A0"http://localhost:8080/redirect"

<= div>Cheers,
Maciej

On 8 January 2015 at 22:41, Tiburtius, Ashwanth [IWD= ] <Ashwanth.Tiburtius@iwd.iowa.gov> wrote:
=

Hi,

=C2=A0

= I am doing a poc to use Apache Oltu for user authentication against Go= ogle, Microsoft and Yahoo. I was able to successfully use the client demo p= rovided by Apache Oltu to authenticate a user in Google using gmail credent= ials 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 ente= red but I keep getting the error =E2=80=9CError: Incorrect parameters: Redirect URI=E2=80=9D even though the redirect uri matches the one configured in the AP= I settings in Microsoft Development Center. This could be a Microsoft quest= ion 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 s= ay the least. Hoping Apache Oltu would make life easier.

=C2=A0<= /u>

Requested Access Scope: wl.signin

End-U= ser Authorization URL: https://login.live.com/oauth20_authorize.srf<= /u>

Token Endpoint: https://login.live.com/oauth20_token.srf<= /a>

Client ID: <Correct value entered>

Client Secret: <Correct value entered><= /u>

Redirect URI: http://iwd.gov/profi= le/register (This is the value entered in the API settings)=

=C2=A0

Thanks,=

Jude.=

Iowa Workforce Deve= lopment =E2=80=93 IT | 1000 E Grand Ave, Des Moines, IA=C2=A0 50319<= u>

(515) 281-337= 8 | Ashwanth.Tiburtius@iwd.iowa.gov

=C2=A0

<= /div>



--
<= div class=3D"gmail_signature">Maciej Machulak
email: maciej.machulak@gmail.commobile: +44 7999 606 767 (UK)
mobile: +48 602 45 31 66 (PL) --047d7bb0453089755f050c2b7982--