<div dir="ltr">hi guys,<div><br></div><div>any ideas how to make Spring security tags in jsp recognize that I am logged in after being redirected from keycloak to a non-protected resource?</div><div><br></div><div>Thanks,</div><div>Adrian</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 10:07 AM, Adrian Matei <span dir="ltr"><<a href="mailto:adrianmatei@gmail.com" target="_blank">adrianmatei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Bill,</div><div><br></div><div>Thank you for the reply. Yes I am using the Spring security adapter (xml configuration). I have received a private reply from Pavel Maslov regarding the sign in url:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>{{keycloakBaseUrl}}/realms/{{realmName}}/protocol/openid-connect/auth?client_id={{client_id}}&response_type=code&redirect_uri={{your-web-app}}</div></blockquote><div>which works great. </div><div><br></div><div>Another problem that I am having now is that when I am logging in from a "not"-protected resource (permitAll in securityContext), and want to be redirected back to the same resource, it logs me in indeed, but the spring security tags in my jsps don't recognize that, until I am accessing a secured resource defined in security context.... Any thoughts there?</div><div><br></div><div>Thanks,</div><div>Adrian</div><div><br></div><div><br></div><div>Message: 2</div><div>Date: Fri, 27 Nov 2015 13:02:32 -0500</div><div>From: Bill Burke <<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></div><div>Subject: Re: [keycloak-user] Sign In button URL</div><div>To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a></div><div>Message-ID: <<a href="mailto:56589AB8.5030708@redhat.com" target="_blank">56589AB8.5030708@redhat.com</a>></div><div>Content-Type: text/plain; charset=windows-1252; format=flowed</div><div><br></div><div>How is your Spring web app handling OpenID Connect or SAML</div><div>requests/respones? We do have a Spring security adapter.</div><div><br></div><div>Initial OAuth2 request:</div><div><br></div><div>/realms/{realm-name}/protocol/openid-connect/auth</div><div><br></div><div>Code to Token request:</div><div>/realms/{realm-name}/protocol/openid-connect/token</div><div><br></div><div><br></div><div>On 11/27/2015 11:19 AM, Adrian Matei wrote:</div><div>> hi guys,</div><div>></div><div>> can still help a poor guy Friday in the afternoon?</div><div>></div><div>> What is the url I need to have the sign in button pointing to, in my</div><div>> Spring web app, that will ask me to login via keycloak and redirect me</div><div>> back exactly to the page I made the request from?</div><div>></div><div>> Thanks,</div><div>> Adrian</div><div>></div><div>></div><div>> _______________________________________________</div><div>> keycloak-user mailing list</div><div>> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a></div><div>> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div><div>></div></div>
</blockquote></div><br></div></div>