Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use azure ad auth #2696

Open
yehor-arch opened this issue Nov 5, 2024 · 3 comments
Open

Cannot use azure ad auth #2696

yehor-arch opened this issue Nov 5, 2024 · 3 comments

Comments

@yehor-arch
Copy link

yehor-arch commented Nov 5, 2024

What happened?

Hi, trying to configure azure ad authentication mechanism using this article:
https://www.klaw-project.io/docs/authentication-authorization/authentication/azure-ad

But I'm getting this strange error, it seems like application cannot use azure-active-directory as an provider ID, can someone pls help?

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-11-05T19:09:31.789Z ERROR 7 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateMapController': Unsatisfied dependency expressed through field 'uiControllerLoginService': Error creating bean with name 'uiControllerLoginService': Unsatisfied dependency expressed through field 'authorizedClientService': Error creating bean with name 'authorizedClientService' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2WebSecurityConfiguration.class]: Unsatisfied dependency expressed through method 'authorizedClientService' parameter 0: Error creating bean with name 'clientRegistrationRepository' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2ClientRegistrationRepositoryConfiguration.class]: Failed to instantiate [org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository]: Factory method 'clientRegistrationRepository' threw exception with message: Unknown provider ID 'azure-active-directory'

What did you expect to happen?

Application started with azure ad configuration

What else do we need to know?

Using docker image with tag "latest"

@aindriu-aiven
Copy link
Contributor

Hi @muralibasani would you be able to look into this?

@aindriu-aiven
Copy link
Contributor

Hi @yehor-arch apologies for the delay, I didn't see this issue get opened, I've asked Murali to look at it as he has the best knowledge of the AD setup, however I will also take a task to fix the formatting on the documentation for this as I notice the link to it does not look great.

@muralibasani
Copy link
Contributor

@yehor-arch Indeed, I did not receive any notification about this.
I see error Unknown provider ID 'azure-active-directory'

Can you pls share the config ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants