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>/swagger.json, the URI to enter for thejwtSwaggerURI property is: /<CxfServlet>/swagger.json
(for example: /ws/swagger.json)

 

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

 

The swagger-ui [api_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 [api_key] (or jwtKey [apiKey]):

 

JWT 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: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJoYXJkaXMiLCJpc3MiOiJKV1RQcm92aWRlciIsImlhd
CI6MTQ2MzQwMzk2NCwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2pheHJzIiwianRpIjoiaWRUb2tlbl8xIiwicm9sZXMiOlsi
YWRtaW4iLCJ1c2VyIl19.o-qhcj9X-G0np3zxeLt2BSfQxVSMxcCO4AUjSS21m72XD2fCMmQbJmnR86wT_lRIDkWxU0Uowc
DUOhEUYkmRhhMjN0vPsseWjgcXoj96vJ0X7cTxxpNSpjGmQtyez7IwL3iWkmUtNN-2OlHU4CSzUuj0JNnGfu3dMzC8vum
_E81cT8IJDKxKyTV_NDrQQ2GKx8wGAPC9ZxAi_qBD3UHuFvr70vNEQUVka5azCMMnpAXIoBuZk0oeTPLlTf4rYYCQ7W
jsirzSylp8a47Xfgj_e6Qb-J01V9ohD5bgHvvB-fp63vT9dODPz_WKJO37_pdfvJALGIewzec0YU6iJUu5gQ

 

 

NB: "JWT" is the default authentication scheme. If the jwtAuthSchemeproperty of the JwtTokenConfiguration object requires another scheme, the string entered in the  [api_key] field must be adjusted accordingly.

 

Click below for more information on the following topics:

↑ Top of page

  • Aucune étiquette