Azure Logout redirect URL as http instead of https

Shruthi M 6 Reputation points
2020-07-25T08:47:25.56+00:00

We have developed a desktop application using ElectronJS and React. In here we have used Azure AD B2C for authentication using the msal.js npm package. ElectronJS on successful build will run on the file protocol method. But Azure AD B2C does not support file protocol(file://somepath/some). So only other option is, while running in production we have created a server locally with some specific port and in that case Redirect URLs for Sign In , Sign up and forgot password workflows , we have used the localhost with port number which we would have created when the app runs. Example http://localhost:18090. Everything is working fine, except for Logout. But the problem is Logout URLs does not support 'http' URLs, as it throws me a error to enter only https URL.

Please suggest is there any other way we can proceed in case of Logout using http://localhost.

Microsoft Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,866 Reputation points Moderator
    2020-07-28T12:57:41.137+00:00

    Hello @ShruthiM-6084

    The new App registrations experience doesn't allow adding URIs with HTTP scheme on the UI. As a workaround, you may try setting the HTTP url for the logoutURL parameter in App Manifest as highlighted below:

    13949-image.png

    On the UI that you have shared in your comment, you will still get The logout URL must start with HTTPS message but the URL will be saved. If you use below PowerShell Cmdlet to view properties of the application, you will see the HTTP URL set as the logout url.

    14103-image.png


    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.

    4 people found this answer helpful.

  2. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2020-07-28T01:05:30.403+00:00

    http://localhost:* can be used as both login and logout redirect url. Please share your full logout URL.


  3. CADORET Guillaume Ext OBS/DD 1 Reputation point
    2021-09-01T14:32:25.607+00:00

    same issue here

    0 comments No comments

  4. john dufff 1 Reputation point
    2021-11-08T12:44:11.377+00:00

    Any update on this matter ?

    0 comments No comments

  5. David Taylor 0 Reputation points
    2023-03-03T15:58:15.6966667+00:00

    I have the same issue. Editing the manifest does not work either since it checks that you have entered an HTTPS address.

    On the Authentication page under Redirect URIs, it says:

    The URIs we will accept as destinations when returning authentication responses (tokens) after successfully authenticating or signing out users.

    Is this where the logout URI should be, alongside the login URI? I tried that but it does not seem to work. And if I try to enter my logout URI where it says Front-channel logout URL, I can't enter an HTTP address.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.