azure-docs-sdk-java icon indicating copy to clipboard operation
azure-docs-sdk-java copied to clipboard

Error Creating bean with name 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2CAutoConfiguration

Open jyotsnaravikumar opened this issue 6 years ago • 2 comments

This code does not work.

pom.xml

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-security</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.springframework.security</groupId>
		<artifactId>spring-security-test</artifactId>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>com.microsoft.azure</groupId>
		<artifactId>azure-active-directory-b2c-spring-boot-starter</artifactId>
		<version>2.1.6.M2</version>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-thymeleaf</artifactId>
	</dependency>
	<dependency>
		<groupId>org.thymeleaf.extras</groupId>
		<artifactId>thymeleaf-extras-springsecurity5</artifactId>
	</dependency>

Code as mentioned in the docs

mvn clean package

Error thrown

Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2CAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2CAutoConfiguration$AADB2COidcAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'azure.activedirectory.b2c-com.microsoft.azure.spring.autoconfigure.b2c.AADB2CProperties': Could not bind properties to 'AADB2CProperties' : prefix=azure.activedirectory.b2c, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'azure.activedirectory.b2c' to com.microsoft.azure.spring.autoconfigure.b2c.AADB2CProperties

jyotsnaravikumar avatar Oct 24 '19 19:10 jyotsnaravikumar

accidentally closed

jyotsnaravikumar avatar Oct 24 '19 19:10 jyotsnaravikumar

Will Microsoft ever address their failed POC's?

jaschenk avatar Jan 26 '21 19:01 jaschenk