Skip to content

Commit 4a4c4f3

Browse files
committed
updated HomeController to reflect new secrets endpoints.
1 parent 2f6b1ca commit 4a4c4f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎jjwt/src/main/java/io/jsonwebtoken/jjwtfun/controller/HomeController.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public String home(HttpServletRequest req) {
1818
" http POST " + requestUrl + "/dynamic-builder-specific claim-1=value-1 ... [claim-n=value-n]\n\tbuild JWT from passed in claims (using specific claims methods)\n\n" +
1919
" http POST " + requestUrl + "/dynamic-builder-compress claim-1=value-1 ... [claim-n=value-n]\n\tbuild DEFLATE compressed JWT from passed in claims\n\n" +
2020
" http " + requestUrl + "/parser?jwt=<jwt>\n\tParse passed in JWT\n\n" +
21-
" http " + requestUrl + "/parser-enforce?jwt=<jwt>\n\tParse passed in JWT enforcing the 'iss' registered claim and the 'hasMotorcycle' custom claim\n";
21+
" http " + requestUrl + "/parser-enforce?jwt=<jwt>\n\tParse passed in JWT enforcing the 'iss' registered claim and the 'hasMotorcycle' custom claim\n\n" +
22+
" http " + requestUrl + "/get-secrets\n\tShow the signing keys currently in use.\n\n" +
23+
" http " + requestUrl + "/refresh-secrets\n\tGenerate new signing keys and show them.\n\n" +
24+
" http POST " + requestUrl + "/set-secrets HS256=base64-encoded-value HS384=base64-encoded-value HS512=base64-encoded-value\n\tExplicitly set secrets to use in the application.";
2225
}
2326

2427
private String getUrl(HttpServletRequest req) {

0 commit comments

Comments
 (0)