@@ -146,7 +146,7 @@ implementation('org.springframework.boot:spring-boot-starter-security')
146
146
```
147
147
and add this dependency instead:
148
148
``` groovy
149
- implementation ('org.springframework.boot:spring-boot-starter-oauth2-client')
149
+ implementation('org.springframework.boot:spring-boot-starter-oauth2-client')
150
150
```
151
151
152
152
Spring security 5 uses the
@@ -397,24 +397,27 @@ users:
397
397
398
398
Now, after authenticating at keycloak you should be able to see the library client.
399
399
400
+ Please also checkout what happens if you login using users having different roles, e.g. as _ pparker_
401
+ as the library curator.
402
+
400
403
If you want to see what is going on behind the scenes just add a debugging breakpoints to the following
401
404
classes and methods
402
405
403
- < u >Authorization Request:</ u >
406
+ __ Authorization Request:__
404
407
405
408
For this part add a debugging breakpoint to the method
406
409
407
410
_ OAuth2AuthorizationRequest resolve(HttpServletRequest request, String registrationId, String redirectUriAction)_
408
411
in class _ org.springframework.security.oauth2.client.web.DefaultOAuth2AuthorizationRequestResolver_ .
409
412
410
- < u >Authorization code redirect callback:</ u >
413
+ __ Authorization code redirect callback:__
411
414
412
415
For this part add a debugging breakpoint to the method
413
416
414
417
_ Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)_
415
418
in class _ org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter_
416
419
417
- < u >Exchange authorization code for access token:</ u >
420
+ __ Exchange authorization code for access token:__
418
421
419
422
For this part add a debugging breakpoint to the method
420
423
0 commit comments