Azure OAuth2

I am using the below link for azure authentication instead of google as mentioned.

https://vaadin.com/blog/oauth-2-and-google-sign-in-for-a-vaadin-application

I am using sample project mentioned in step2. I have added two dependencies

com.azure.spring
spring-cloud-azure-starter-active-directory
4.5.0


org.springframework.boot
spring-boot-starter-oauth2-client

Below is LoginView

@Route(“login”)
@AnonymousAllowed
public class LoginView extends VerticalLayout {
/**
* URL that Spring uses to connect to Google services
*/
private static final String OAUTH_URL = “/oauth2/authorization/azure”;

public LoginView() {
Anchor loginLink = new Anchor(OAUTH_URL, “Login with Azure AD”);
// Set router-ignore attribute so that Vaadin router doesn’t handle the login request
loginLink.getElement().setAttribute(“router-ignore”, true);
add(loginLink);
getStyle().set(“padding”, “200px”);
setAlignItems(Alignment.CENTER);
}
}

I followed all steps mentioned and when running ./mvnw spring-boot:run am getting below warning and failing with same error.

In application.properties i provided client id and secret as below.
Spring.security.oauth2.client.registration.azure.client-id=
spring.security.oauth2.client.registration.azure.client-secret=

Can anyone please guide me what am missing in configuration?

The last line of your exception tells you the problem

What configuration am i missing here
I have added client id, secret and spring.security.oauth2.client.provider.azure.authorization-uri

https://stackoverflow.com/a/71788367

It’s also mentioned here - Azure is no common provider and therefore, more information has to be provided https://docs.spring.io/spring-security/reference/5.7/servlet/oauth2/login/core.html#oauth2login-common-oauth2-provider