Azure / azure-docs-sdk-java

☕️ Azure SDK for Java API documentation repository. Content here is mostly auto-generated.
https://docs.microsoft.com/java/api/?view=azure-java-stable
Creative Commons Attribution 4.0 International
56 stars 241 forks source link

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

Open jyotsnaravikumar opened 4 years ago

jyotsnaravikumar commented 4 years ago

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 commented 4 years ago

accidentally closed

jaschenk commented 3 years ago

Will Microsoft ever address their failed POC's?