Azure-Samples / ms-identity-java-webapp

A Java web application calling Microsoft graph that is secured using the Microsoft identity platform
MIT License
118 stars 105 forks source link

This sample doesn't work with https:// #9

Closed ParthaPratimDas123 closed 4 years ago

ParthaPratimDas123 commented 5 years ago

This sample works fine if I run it locally. But if I host the application in web app and run the application(e.g. https://abc.azurewebsites.net/msal4jsample) and click the login button, it becomes an infinite loop. It keeps on asking the AAD Login UID/ Password.

Please review.

sangonzal commented 5 years ago

@ParthaPratimDas123 have you tried updating the redirect URLs (both in the application.properties and the Azure portal) to use https:// schemes?

ParthaPratimDas123 commented 4 years ago

Yes

Avery-Dunn commented 4 years ago

HTTPS should be working correctly as of the latest version. See https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/208 for a related issue and confirmation that HTTPS URLs are work, and https://github.com/Azure-Samples/ms-identity-java-webapp/pull/41, https://github.com/Azure-Samples/ms-identity-java-webapp/pull/43 for related changes to the sample