Skip to content

Commit 4995acc

Browse files
committed
Polish ClientSecretBasicAuthenticationConverter
1 parent a4a61fc commit 4995acc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import javax.servlet.http.HttpServletRequest;
2626

2727
import org.springframework.http.HttpHeaders;
28+
import org.springframework.lang.Nullable;
2829
import org.springframework.security.core.Authentication;
2930
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
3031
import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
@@ -48,6 +49,7 @@
4849
*/
4950
public final class ClientSecretBasicAuthenticationConverter implements AuthenticationConverter {
5051

52+
@Nullable
5153
@Override
5254
public Authentication convert(HttpServletRequest request) {
5355
String header = request.getHeader(HttpHeaders.AUTHORIZATION);

0 commit comments

Comments
 (0)