From b793ef034892c874587ce74a54fb03c4edc35367 Mon Sep 17 00:00:00 2001 From: jclingan Date: Thu, 23 Jan 2020 22:56:31 -0800 Subject: [PATCH] Fixed token output in jwt docs --- docs/microprofile-jwt-rbac.adoc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/microprofile-jwt-rbac.adoc b/docs/microprofile-jwt-rbac.adoc index be0de42..8676c5d 100644 --- a/docs/microprofile-jwt-rbac.adoc +++ b/docs/microprofile-jwt-rbac.adoc @@ -99,7 +99,7 @@ HTTP/1.1 200 OK Content-Length: 15 Content-Type: text/plain;charset=UTF-8 -Principal: demo +Principal: demo@acme.org .... -- + @@ -122,7 +122,7 @@ HTTP/1.1 200 OK Content-Length: 15 Content-Type: text/plain;charset=UTF-8 -Principal: demo +Principal: demo@acme.org .... -- + @@ -175,21 +175,21 @@ $ curl -i -H"Authorization: Bearer ${TOKEN}" http://localhost:8080/frontend/toke .Terminal 3 Output .... HTTP/1.1 200 OK -Content-Length: 816 +Content-Length: 929 Content-Type: text/plain;charset=UTF-8 -Principal: demo, +Principal: demo@acme.org, [ - sub: demo, - upn: demo, - myc: My Custom Claim, - raw_token: eyJraWQiOiJqd3Qua2V5IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyXC80Mzk3MSIsInVwbiI6ImRlbW9AYWNtZS5vcmciLCJteWMiOiJNeSBDdXN0b20gQ2xhaW0iLCJhdXRoX3RpbWUiOjE1Nzg2NTEyODMsImlzcyI6ImFpcmhhY2tzIiwiZ3JvdXBzIjpbInVzZXIiLCJhZG1pbiJdLCJleHAiOjMxNTU4ODI4OTgsImlhdCI6MTU3ODY1MTI4MywianRpIjoiYWlyaGFja3Mtand0LXVuaXF1ZS1pZC0xMjM0MjE0MiJ9.Eaqe3sTH64doIVW3on25EA_uD9XrfppndiweUNLVbFK3KxaIfXaAdQ4N9IkQG6Iw0A7I7kngjeSHwb2DzH8rQE8yp7sCtey6kmC689eQC0j2k-YbyGZ68xnsMj5taOBVGH_ZSWC6E1L-Gk-GgcTvX6I3SaBC8pwZ267q6psknqlAtfD2JoE7ezEb7LrLVwP1vaGqKzC2X6pv5J-07DNBqe75uBWQyqX_WE856ug3uqWcHtNck8nqU6VhwXqxHZ6vkRlx9VoMgFUF851D-WuKMCUdfXJHekDyKmjYuyLiw7jtQSdliY3ONOXgFm_uzjKGuZ1VKPdQXyx7GQ9NsNTYfw, - auth_time: 1578015200, - iss: airhacks, - groups: [admin, user], - exp: 3155882898, - iat: 1578015200, - jti: 42] + sub: user/43971, + upn: demo@acme.org, + myc: My Custom Claim, + raw_token: eyJraWQiOiJqd3Qua2V5IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyXC80Mzk3MSIsInVwbiI6ImRlbW9AYWNtZS5vcmciLCJteWMiOiJNeSBDdXN0b20gQ2xhaW0iLCJhdXRoX3RpbWUiOjE1Nzg2NTEyODMsImlzcyI6ImFpcmhhY2tzIiwiZ3JvdXBzIjpbInVzZXIiLCJhZG1pbiJdLCJleHAiOjMxNTU4ODI4OTgsImlhdCI6MTU3ODY1MTI4MywianRpIjoiYWlyaGFja3Mtand0LXVuaXF1ZS1pZC0xMjM0MjE0MiJ9.Eaqe3sTH64doIVW3on25EA_uD9XrfppndiweUNLVbFK3KxaIfXaAdQ4N9IkQG6Iw0A7I7kngjeSHwb2DzH8rQE8yp7sCtey6kmC689eQC0j2k-YbyGZ68xnsMj5taOBVGH_ZSWC6E1L-Gk-GgcTvX6I3SaBC8pwZ267q6psknqlAtfD2JoE7ezEb7LrLVwP1vaGqKzC2X6pv5J-07DNBqe75uBWQyqX_WE856ug3uqWcHtNck8nqU6VhwXqxHZ6vkRlx9VoMgFUF851D-WuKMCUdfXJHekDyKmjYuyLiw7jtQSdliY3ONOXgFm_uzjKGuZ1VKPdQXyx7GQ9NsNTYfw, + auth_time: 1578651283, + iss: airhacks, + groups: [admin, user], + exp: 3155882898, + iat: 1578651283, + jti: airhacks-jwt-unique-id-12342142] .... -- +