Azure Active Directory Enterprise Applications

Paul Maloney Beacon 1 Reputation point
2019-12-03T22:08:29.81+00:00

App works great at http://localhost:3000 we then deployed that same code to our staging site to test with Production data and I added the following URI to authentication - https://cos-stage.beaconis.com and I get the following error back - undefined method `hostname’ for #URI::HTTPS:0xfc970fc

This is a custom written Ruby on Rails application that is hosted by us that is using Microsoft Graph API and I am managing through Azure Active Directory Enterprise Applications. The Reply URI is throwing the error I am assuming during the get_token call - but as I stated works fine when the return URI is http://localhost:3000

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,440 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2019-12-05T23:43:31.907+00:00

    Hi Paul,

    If you are having this issue in your published application but not getting this issue in localhost, this almost always means that there's a mismatched reference to a reply URI/redirect URI somewhere in either the code or the app registration in the portal. These need to match exactly and have the same https protocol.

    Ensure that all references in your code and in your app registration direct to the URL of the published application where you want the customer to land after sign-in. Also, double-check that all app ID/client ID, tenant ID, tenant name, and other application identifiers are matching in both places if you haven't done so already.

    alt text

    1 person found this answer helpful.
    0 comments No comments