none
Receiving "Redirect_URI" Is NOT Valid Error With Outlook Contacts REST API? RRS feed

Answers

  • Ok, I was able to finally get it working!! :-)

    I just added all the following as the URIs

    - https://www.domain.com
    - https://www.domain.com/en/friends/invite
    - https://www.domain.com/en/friends/auth/hotmail
    - https://www.domain.com/en/

    And I have the following set too: 

    - "Live SDK Support" checked ON
    - "Allow Implicit Flow" checked OFF

    Hopefully this helps someone else having this issue too!

    • Marked as answer by olimits7 Friday, March 4, 2016 7:10 PM
    Friday, March 4, 2016 7:10 PM

All replies

  • Hi olimits7,

    How do you register application? For example, apps.dev.microsoft.com, in Platforms specify the Redirect URI (e.g. http://localhost:[port]/)

    So, please make sure the Redirect URL match the value of redirect_uri parameter of the request URL.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, March 4, 2016 7:59 AM
    Moderator
  • Hi Starain,

    Thank you for your quick reply!

    This is the page on my website where I have this API integrated on:

    https://www.domain.com/en/friends/invite

    So when I click the link on this page it opens the following popup in which I log into my Hotmail email address account and then I get redirected to the "redirect URI not valid" page.

    https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirect_uri=https://www.domain.com/en/friends/auth/hotmail&response_type=code&scope=openid+https://outlook.office.com/contacts.read

    In my Platform for this app I've tried entering in all these different URI URLs and none of them seem to work:

    - https://domain.com
    - https://domain.com/en/friends/invite
    - https://domain.com/en/friends/auth/hotmail
    - https://domain.com/en/
    - https://www.domain.com
    - https://www.domain.com/en/friends/invite
    - https://www.domain.com/en/friends/auth/hotmail
    - https://www.domain.com/en/

    Shouldn't one of these above URL's work properly with the API?

    I also have "Live SDK Support" checked ON in my app too.

    Thank you, again!

    Friday, March 4, 2016 4:16 PM
  • Ok, I was able to finally get it working!! :-)

    I just added all the following as the URIs

    - https://www.domain.com
    - https://www.domain.com/en/friends/invite
    - https://www.domain.com/en/friends/auth/hotmail
    - https://www.domain.com/en/

    And I have the following set too: 

    - "Live SDK Support" checked ON
    - "Allow Implicit Flow" checked OFF

    Hopefully this helps someone else having this issue too!

    • Marked as answer by olimits7 Friday, March 4, 2016 7:10 PM
    Friday, March 4, 2016 7:10 PM