O365 Console App authentication RRS feed

  • Question

  • I need to create/update a O365 group, add/remove members from the group using Console Application. I have created an Application in Azure AD and used the client id with the application and upon running the application it fails to authenticate:
    AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'a5ca5d87-37fc-42e2-a230-2a3d08966514'.

    Request Id:  b065cebf-5927-407f-b700-c7c54df8c800
    Correlation Id:  16478875-8c00-4969-957d-f5cc32636a3b

    Timestamp:  2019-11-11T13:50:55Z

    Message:  AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'a5ca5d87-37fc-42e2-a230-2a3d08966514'. 

    Advanced diagnostics: Enable

    I would like to embed the credentials within the application to authenticate. Any help would be appreciated.


    Monday, November 11, 2019 2:02 PM

All replies

  • Hey Raj Krish,

    The reason you're getting this error is because the reply url you've configured in your AAD Application is not the same as the reply url you are sending to the authorize/token endpoint

    Which flow are you using? 

    For more information on this error see : https://blogs.aaddevsup.xyz/2019/04/aadsts50011-the-reply-url-specified-in-the-request-does-not-match/


    In addition to that, I'd like to say that if you are trying to follow the client credential flow you may have issues with updating an o365 group, since O365 is actually outside of Azure. Currently our product teams are working to make sure there are no issues with Azure and O365, however if you run into any issues with updating the o365 group, you may need to utilize the authorization code flow. 

    I have created a small console application that follows the auth code flow if you'd like to take a look at what it should look like : https://github.com/FrankHu-MSFT/ADAL-.NET-Console-Application/

     Please remember to mark one of the responses as answer if your question has been answered. If not please let us know if there are anymore questions. Thanks

    Monday, November 11, 2019 9:51 PM
  • Hello,

    Just checking to see if you were able to get this resolved and if the answer was helpful to you. If so, please remember to mark as answer so that others in the community with similar questions can more easily find an answer.

    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Thursday, November 14, 2019 12:40 AM
  • Please let us know if you were able to resolve the issue from the replies before. If you still have more questions please let us know with some additional information regarding your question and we'll try to resolve it. It may require additional support escalation if we are unable to resolve this on this msdn thread. 

    If there's no more follow ups in regards to this, I will be marking an answer as answer. If you feel your question has not been answered please let us know anymore pending asks and we can try to follow up accordingly. 


    - Frank H.

    Tuesday, November 26, 2019 8:04 PM
  • I'm following up on this please let us know if there are anymore questions. In order to progress this issue forward, we will need you to reply/respond in regards to the replies above. Thanks
    Wednesday, December 11, 2019 7:09 PM