<div dir="ltr">Thanks Scott. I'll give that a try.<div><br></div><div>For the record, I progressed past that error by updating the application.yml to set useCurrentUri to false when defining the client configuration. But that just got me to the next error of too many redirects. </div><div><br></div><div>So, I'll try using Spring Security on it's own for now. Thanks heaps for the help.</div><div><br></div><div>Thanks again,</div><div>Ed</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 12:30 PM, Scott Rossillo <span dir="ltr"><<a href="mailto:srossillo@smartling.com" target="_blank">srossillo@smartling.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Ed,</div><div><br></div><div>I’d recommend not using the Spring Boot adapter for now and sticking with the Spring Security adapter, even for Spring Boot apps. You’ll still need a keycloak.json file, which you can put in your src/main/resources folder. </div><div><br></div><div>Here’s an repositories with examples of how to use Spring Security rules and run with Spring Boot:</div><div><br></div><div><a href="https://github.com/foo4u/keycloak-spring-demo" target="_blank">https://github.com/foo4u/keycloak-spring-demo</a></div><div><br></div><div>Take a look at this configuration for a confidential app:</div><div><br></div><div><a href="https://github.com/foo4u/keycloak-spring-demo/blob/master/customer-app/src/main/java/org/keycloak/example/spring/customer/config/SecurityConfig.java" target="_blank">https://github.com/foo4u/keycloak-spring-demo/blob/master/customer-app/src/main/java/org/keycloak/example/spring/customer/config/SecurityConfig.java</a></div><div><br></div><div>Or this configuration for a bearer-only app:</div><div><br></div><div><a href="https://github.com/foo4u/keycloak-spring-demo/blob/master/database-service/src/main/java/org/keycloak/example/spring/config/SecurityConfig.java" target="_blank">https://github.com/foo4u/keycloak-spring-demo/blob/master/database-service/src/main/java/org/keycloak/example/spring/config/SecurityConfig.java</a></div><div><br></div><div>Hope that helps.</div><div><br></div><div>We’ll try to align the Spring Boot module with the Spring Security module in the coming months. For now, the two modules are mutually exclusive. Ideally, the Spring Boot module would simply add sensible defaults and configuration via application config to the Spring Security adapter.</div><div><br></div><div>Best,</div><div>Scott</div><div><br></div><div><br></div><div><br></div><br><div><blockquote type="cite"><div><div class="h5"><div>On Aug 13, 2015, at 9:28 PM, Ed Hillmann <<a href="mailto:ed.hillmann@gmail.com" target="_blank">ed.hillmann@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Hi. I am trying to get this sample application working against a local keycloak instance<div><br></div><div><a href="https://github.com/spring-cloud-samples/sso" target="_blank">https://github.com/spring-cloud-samples/sso</a><br></div><div><br></div><div>As I understand it, it's a Spring Boot application using Spring Security to support SSO. And I can't get it (as the client) to interact with the KeyCloak authentication server.</div><div><br></div><div>If I just add the configuration for the Spring Boot adapter alone, it attempts to call out to KeyCloak but the url always includes a redirect_uri parameter, which Keycloak doesn't like and displays an error instead of a login screen.</div><div><br></div><div>I've then tried to add, in addition to the Spring Boot configuration, the integration with Spring Security (the next section in the KeyCloak documentation). When I that, however, the server complains because it cannot find the keycloak.json file. Which isn't there because I've added the details to the application.yml file (as directed by the Spring Boot config)</div><div><br></div><div>Is there some last step that I need to do to get these working? I'm new to Spring Boot. so I'm not sure I know how to step through it's configuration to see why it insists on sending the redirect_uri, and including Spring Security seems like a miss.</div><div><br></div><div>Thanks for any help,</div><div>Ed</div></div></div></div>
_______________________________________________<br>keycloak-user mailing list<br><a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div></blockquote></div><br></div></blockquote></div><br></div>