V.S
V.S

Reputation: 165

Azure Active Directory + spring boot

I am trying to run the azure-active-directory-spring-boot-backend-sample but it is not working. After opening localhost:8080 it prompts with the localhost:8080/login page and Azure link. After clicking on it it goes to the Azure Active Directory page. After successful login it comes back to the /login page rather than the /welcome page. I tried using other examples as well available on the internet but nothing seems to be working. Please advise.

Upvotes: 2

Views: 690

Answers (1)

Marilee Turscak - MSFT
Marilee Turscak - MSFT

Reputation: 7728

You need to register your application under the Azure Active Directory where your users are stored. Then enter the published homepage URL in the Reply URL section in your App Registration. The Reply URL or PostLogoutRedirectURI in your config or app settings needs to match what's listed in your app registration. If it's redirecting to localhost that probably means that one or both are set to localhost. Set it to your welcome page URL (https://welcome.azurewebsites.net) in both locations and then try again.

See my blog post and accompanying video to see where to set this up.

Upvotes: 1

Related Questions