oltu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciej Machulak <maciej.machu...@gmail.com>
Subject Re: Microsoft OAuth2 Question
Date Thu, 08 Jan 2015 22:22:25 GMT
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 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
> <https://login.live.com/oauth20_authorize.srf>*
>
> *Token Endpoint: https://login.live.com/oauth20_token.srf
> <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.Tiburtius@iwd.iowa.gov
>
>
>



-- 
Maciej Machulak
email: maciej.machulak@gmail.com
mobile: +44 7999 606 767 (UK)
mobile: +48 602 45 31 66 (PL)

Mime
View raw message