File tree Expand file tree Collapse file tree
src/main/java/com/faforever/api/config/security/oauth2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments