Skip to content

Commit 2c8d5a1

Browse files
committed
Remove comment in OAuth2AuthorizationCodeRequestAuthenticationProvider
1 parent 6b5d9f0 commit 2c8d5a1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationCodeRequestAuthenticationProvider.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ private Authentication authenticateAuthorizationRequest(Authentication authentic
239239
.build();
240240
this.authorizationService.save(authorization);
241241

242-
// TODO security checks for code parameter
243-
// The authorization code MUST expire shortly after it is issued to mitigate the risk of leaks.
244-
// A maximum authorization code lifetime of 10 minutes is RECOMMENDED.
245-
// The client MUST NOT use the authorization code more than once.
246-
// If an authorization code is used more than once, the authorization server MUST deny the request
247-
// and SHOULD revoke (when possible) all tokens previously issued based on that authorization code.
248-
// The authorization code is bound to the client identifier and redirection URI.
249-
250242
String redirectUri = authorizationRequest.getRedirectUri();
251243
if (!StringUtils.hasText(redirectUri)) {
252244
redirectUri = registeredClient.getRedirectUris().iterator().next();

0 commit comments

Comments
 (0)