Closed neexs closed 4 years ago
Thanks for reporting this. We'll look into it.
Hi @neexs, I've run the sample locally and did not run into the same exception. Could you please provide more information, like which version of Spring Boot you're using, or you pom.xml?
@saragluna - We are facing the same issue with this using release 2.2.3 and java 11.
`
`
It appears if we look at the files they do not have spring annotations defining them as beans for autowiring. This should have something like @Component or @Configuration if I am not mistaken.
You can see any of the other classes for other modules have these annotations like this one for cosmos db.
@saragluna - I worked on this some more and determined there must have been some issue causing the AADB2CAutoConfiguration.java not to do its job.
If I have time ill try and follow my initial steps and see what was missed causing this.
This is working as expected for me now.
Glad to hear that and thanks for your investigation.
same problem with AADAppRoleAuthenticationFilterAutoConfiguration
@fdr42 Sorry for the late response. Could you help provide more details?
I solved the problem which was my bad, sorry
Hi, sorry for the late response, I've got some urgent issues to solve...
I came to the same conclusion as @geoarchitect, but fortunately everything is fine now.
Thank you for your help, and sorry again.
@fdr42 Could you please guide how you resolve your issue.
I'm facing same issue as of now.
I'm using spring boot 2.3.3.RELEASE, java 8, azure-active-directory-spring-boot-starter 2.2.3.
Thanks in advance.
Having this same problem in Dec 2020. @neexs , @fd42, what were you doing wrong and how did you fix it?
@gbsmith in my case the cause of the problem was invalid "application.properties", I assume that these beans are conditional and you have to add some properties keys to create them. For example: "AADAppRoleStatelessAuthenticationFilter" requires "azure.activedirectory.client-id" property
Environment
Spring boot starter:
OS Type: Windows
Java version:
Summary
I'm getting an error when running app, on following code (Autowiring is not working for the
AADB2COidcLoginConfigurer
object)The error :
NoSuchBeanDefinitionException: No qualifying bean of type 'com.microsoft.azure.spring.autoconfigure.b2c.AADB2COidcLoginConfigurer' available
Reproduce steps
Following this sample and packaging it with maven/running it : https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-active-directory-b2c-oidc-spring-boot-sample
Expected Results
No error.
Actual Results