File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
basic-login/src/main/java/com/navercorp/pinpoint/login/basic Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 35
35
*/
36
36
public class BasicLoginProperties implements InitializingBean {
37
37
38
- private static final String DEFAULT_JWT_SECRET_KEY = "PINPOINT_JWT_SECRET " ;
38
+ private static final String DEFAULT_JWT_SECRET_KEY = "__PINPOINT_JWT_SECRET__ " ;
39
39
40
40
private static final long DEFAULT_EXPIRATION_TIME_SECONDS = TimeUnit .HOURS .toSeconds (12 );
41
41
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public JwtService(BasicLoginProperties basicLoginProperties) {
56
56
Assert .isTrue (basicLoginProperties .getExpirationTimeSeconds () > 0 , "expirationTimeSeconds must be '>= 0'" );
57
57
this .expirationTimeMillis = TimeUnit .SECONDS .toMillis (basicLoginProperties .getExpirationTimeSeconds ());
58
58
59
- byte [] keyBytes = Base64 .getDecoder ().decode (secretKeyStr );
59
+ byte [] keyBytes = Base64 .getEncoder ().encode (secretKeyStr . getBytes () );
60
60
this .secretKey = Keys .hmacShaKeyFor (keyBytes );
61
61
62
62
JwtParserBuilder jwtParser = Jwts .parser ();
Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ web.installation.downloadUrl=
98
98
99
99
# Declares user:password in pinpoint-web.properties. (You can declare multiple people using,.)
100
100
# Role (User : Can use whole function except for admin rest api, Admin : Can use whole function)
101
- # web.security.auth.user=alice:foo, bob:bar
101
+ # web.security.auth.user=alice:foo,bob:bar
102
102
# web.security.auth.admin=eve:baz
103
- # web.security.auth.jwt.secretkey=PINPOINT_JWT_SECRET
103
+ # web.security.auth.jwt.secretkey=__PINPOINT_JWT_SECRET__
104
104
105
105
# cache application list in seconds
106
106
web.applicationList.cacheTime =30
You can’t perform that action at this time.
0 commit comments