question

PaulMaloneyBeacon-1895 avatar image
0 Votes"
PaulMaloneyBeacon-1895 asked ·

Azure Active Directory Enterprise Applications

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

azure-active-directory
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PaulMaloneyBeacon-1895, I guess the string is not parsed here properly.

Take a look at this

0 Votes 0 · ·

Thanks for your answer - but I don't believe that is the issue. Why would it work just fine using http://localhost:3000 vs https://cos-stage.beaconis.com?

0 Votes 0 · ·

1 Answer

MarileeTurscak avatar image
1 Vote"
MarileeTurscak answered ·

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


redirectazureuri.png (112.5 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.