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

Error when updating to Spring Boot 2.2.0 #13

Open
dkokic opened this issue Nov 2, 2019 · 5 comments
Open

Error when updating to Spring Boot 2.2.0 #13

dkokic opened this issue Nov 2, 2019 · 5 comments

Comments

@dkokic
Copy link

dkokic commented Nov 2, 2019

The following is the runtime error:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenRelayGatewayFilterFactory' defined in class path resource [org/springframework/cloud/security/oauth2/gateway/TokenRelayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'tokenRelayGatewayFilterFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizedClientRepository' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientConfigurations$ReactiveOAuth2ClientConfiguration.class]: Unsatisfied dependency expressed through method 'authorizedClientRepository' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizedClientService' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientConfigurations$ReactiveOAuth2ClientConfiguration.class]: Unsatisfied dependency expressed through method 'authorizedClientService' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientRegistrationRepository' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/reactive/ReactiveOAuth2ClientConfigurations$ReactiveClientRegistrationRepositoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.client.registration.InMemoryReactiveClientRegistrationRepository]: Factory method 'clientRegistrationRepository' threw exception; nested exception is java.lang.IllegalArgumentException: redirectUriTemplate cannot be empty

@devenagravat
Copy link

I had similar issue. Fixed by proper renaming of property .
https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2login-boot-property-mappings

@jain6968
Copy link

@devenagravat thanks for the response, but which property did you rename as there are many in the same link.

@rbrtpks
Copy link

rbrtpks commented Jan 31, 2022

@devenagravat thanks for the response, but which property did you rename as there are many in the same link.

Did you manage to find a solution to this problem?

@rbrtpks
Copy link

rbrtpks commented Feb 2, 2022

@jain6968 up?

@IgorSzczerbickiBlue
Copy link

IgorSzczerbickiBlue commented Oct 4, 2024

It's been a few years now, but for anyone else who has run into this same problem. You should change:
spring.security.oauth2.client.registration.CLIENT.redirect-uri-template
to
spring.security.oauth2.client.registration.CLIENT.redirect-uri

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

5 participants