File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/main/java/com/okta/developer/jugtours/web Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 66import org .springframework .security .core .annotation .AuthenticationPrincipal ;
77import org .springframework .security .oauth2 .client .registration .ClientRegistration ;
88import org .springframework .security .oauth2 .client .registration .ClientRegistrationRepository ;
9- import org .springframework .security .oauth2 .core .oidc .OidcIdToken ;
109import org .springframework .security .oauth2 .core .user .OAuth2User ;
1110import org .springframework .web .bind .annotation .GetMapping ;
1211import org .springframework .web .bind .annotation .PostMapping ;
@@ -34,9 +33,7 @@ public ResponseEntity<?> getUser(@AuthenticationPrincipal OAuth2User user) {
3433 }
3534
3635 @ PostMapping ("/api/logout" )
37- public ResponseEntity <?> logout (HttpServletRequest request ,
38- @ AuthenticationPrincipal (expression = "idToken" ) OidcIdToken idToken ) {
39-
36+ public ResponseEntity <?> logout (HttpServletRequest request ) {
4037 StringBuilder logoutUrl = new StringBuilder ();
4138 String issuerUri = this .registration .getProviderDetails ().getIssuerUri ();
4239 logoutUrl .append (issuerUri .endsWith ("/" ) ? issuerUri + "v2/logout" : issuerUri + "/v2/logout" );
You can’t perform that action at this time.
0 commit comments