Skip to content

Commit a26727a

Browse files
Sheikah45Brutus5000
authored andcommitted
Remove unneeded keys
1 parent 90dbaf6 commit a26727a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main/java/com/faforever/api/config/security/oauth2/OAuthJwtConfig.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,8 @@ protected JwtAccessTokenConverter jwtAccessTokenConverter() throws IOException {
5656
}
5757

5858
@Bean(name = "hydraAccessTokenConverter")
59-
protected JwtAccessTokenConverter hydraAccessTokenConverter() throws IOException {
60-
String secretKey = Files.readString(fafApiProperties.getJwt().getSecretKeyPath());
61-
String publicKey = Files.readString(fafApiProperties.getJwt().getPublicKeyPath());
62-
59+
protected JwtAccessTokenConverter hydraAccessTokenConverter() {
6360
JwtAccessTokenConverter jwtAccessTokenConverter = new JwtAccessTokenConverter();
64-
jwtAccessTokenConverter.setSigningKey(secretKey);
65-
jwtAccessTokenConverter.setVerifierKey(publicKey);
6661
((DefaultAccessTokenConverter) jwtAccessTokenConverter.getAccessTokenConverter()).setUserTokenConverter(new FafUserAuthenticationConverter());
6762
((DefaultAccessTokenConverter) jwtAccessTokenConverter.getAccessTokenConverter()).setScopeAttribute("scp");
6863
return jwtAccessTokenConverter;

0 commit comments

Comments
 (0)