File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
java/com/appirio/service/review Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ public class M2mAuthConfiguration {
5454 * The token expire time in minutes.
5555 */
5656 @ JsonProperty
57+ @ NotNull
58+ @ Getter
59+ @ Setter
60+ private Integer tokenExpireTimeInMinutes ;
61+
62+ /**
63+ * The proxy server.
64+ */
65+ @ JsonProperty
5766 @ Getter
5867 @ Setter
5968 private String auth0ProxyServerUrl ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ static String generateAuthToken(M2mAuthConfiguration m2mAuthConfiguration) throw
8181 m2mAuthConfiguration .getClientSecret (),
8282 m2mAuthConfiguration .getAudience (),
8383 m2mAuthConfiguration .getM2mAuthDomain (),
84+ m2mAuthConfiguration .getTokenExpireTimeInMinutes (),
8485 m2mAuthConfiguration .getAuth0ProxyServerUrl ());
8586 return jwtTokenGenerator .getMachineToken ();
8687 }
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ m2mAuthConfig:
7272 clientSecret : " ${M2M_AUTH_CLIENT_SECRET:-dummy}"
7373 audience : " ${M2M_AUTH_AUDIENCE:-dummy}"
7474 m2mAuthDomain : " ${M2M_AUTH_DOMAIN:-topcoder-dev.auth0.com}"
75+ tokenExpireTimeInMinutes : " ${M2M_AUTH_TOKEN_EXPIRE_TIME_IN_MINS:-60}"
7576 auth0ProxyServerUrl : " ${M2M_AUTH_PROXY_SEREVR_URL:-dummy}"
7677
7778# use the simple server factory if you only want to run on a single port
You can’t perform that action at this time.
0 commit comments