Try metodh from SwaggerUI with active JWT token

Hi,

in my service XData I have activate the JWT tocken. When I add JWT token authorization in swaggerUI and try the method from the interface the request Header is not correct.

This is the Header from SwaggerUI:

authorization:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiIiwiaXNhZG1pbiI6dHJ1ZSwiaXNzIjoiWERhdGEgU2VydmVyIn0.J2cNJopTaJE7MllhuLi-f3A8YnV78oBbfsXwW51cIKs....

While it should be:

authorization:Bearer 
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiIiwiaXNhZG1pbiI6dHJ1ZSwiaXNzIjoiWERhdGEgU2VydmVyIn0.J2cNJopTaJE7MllhuLi-f3A8YnV78oBbfsXwW51cIKs....

Best Regards






In the SwaggerUI dialog where it asks for authorization, you should just type "Bearer " (with space) and then paste the token. This should authorize your SwaggerUI.

Thank you very much Wagner!


Great!! Work fine!!!!!