Products Downloads


French version


 

To access the REST services listing swagger resource without having to enter the JWT beforehand, the jwtSwaggerURI property needs to be set with the aforementioned resource URI.


Example: 

If the listing resource access URL is:  http://my.domain.com/<RootContext>/<CxfServlet>/api-docs?url=/<RootContext>/<CxfServlet>/openapi.json, the URI to enter for the jwtSwaggerURI property is: /<CxfServlet>/api-docs;/<CxfServlet>/swagger*;/<CxfServlet>/openapi*
(for example: /ws/api-docs;/ws/swagger*;/ws/openapi*)


The swagger-ui [jwt_key] field may contain a JWT so that an Authorization header can be added to all the requests sent to the resource server.


Example:


Entering the following string into the swagger-ui field [jwt_key]:


eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJoYXJkaXMiLCJpc3MiOiJKV1RQcm92aWRlciIsImlhdCI6MTQ2Mz
QwMzk2NCwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2pheHJzIiwianRpIjoiaWRUb2tlbl8xIiwicm9sZXMiOlsiYWRtaW4i
LCJ1c2VyIl19.o-qhcj9X-G0np3zxeLt2BSfQxVSMxcCO4AUjSS21m72XD2fCMmQbJmnR86wT_lRIDkWxU0UowcDUOhEUY
kmRhhMjN0vPsseWjgcXoj96vJ0X7cTxxpNSpjGmQtyez7IwL3iWkmUtNN-2OlHU4CSzUuj0JNnGfu3dMzC8vum_E81cT8IJDK
xKyTV_NDrQQ2GKx8wGAPC9ZxAi_qBD3UHuFvr70vNEQUVka5azCMMnpAXIoBuZk0oeTPLlTf4rYYCQ7WjsirzSylp8a47Xfgj_e6
Qb-J01V9ohD5bgHvvB-fp63vT9dODPz_WKJO37_pdfvJALGIewzec0YU6iJUu5gQ


adds the following HTTP header to all requests sent to the resource server:


Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJoYXJkaXMiLCJpc3MiOiJKV1RQcm92aWRlciIsImlhd
CI6MTQ2MzQwMzk2NCwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2pheHJzIiwianRpIjoiaWRUb2tlbl8xIiwicm9sZXMiOlsi
YWRtaW4iLCJ1c2VyIl19.o-qhcj9X-G0np3zxeLt2BSfQxVSMxcCO4AUjSS21m72XD2fCMmQbJmnR86wT_lRIDkWxU0Uowc
DUOhEUYkmRhhMjN0vPsseWjgcXoj96vJ0X7cTxxpNSpjGmQtyez7IwL3iWkmUtNN-2OlHU4CSzUuj0JNnGfu3dMzC8vum
_E81cT8IJDKxKyTV_NDrQQ2GKx8wGAPC9ZxAi_qBD3UHuFvr70vNEQUVka5azCMMnpAXIoBuZk0oeTPLlTf4rYYCQ7W
jsirzSylp8a47Xfgj_e6Qb-J01V9ohD5bgHvvB-fp63vT9dODPz_WKJO37_pdfvJALGIewzec0YU6iJUu5gQ



Click below for more information on the following topics:

↑ Top of page

  • Aucune étiquette