How to change bearer token value during runtime? #583
-
I'm generating a client implementation with a bearer-token authentication. Using property "quarkus.openapi-generator.spec_json.auth.bearerAuth.bearer-token works well with a token value manually generated for me, but I need to change this token during RUNTIME. I'm not fluent with Quarkus and I'm missing understanding the use of your generator, so If you could help me on this will be great. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@orovp I'd say that you can add a custom RequestFilter, generate the token, and add it to the header. Take a look at: https://github.com/quarkiverse/quarkus-openapi-generator/tree/main/integration-tests/security |
Beta Was this translation helpful? Give feedback.
@orovp I'd say that you can add a custom RequestFilter, generate the token, and add it to the header. Take a look at: https://github.com/quarkiverse/quarkus-openapi-generator/tree/main/integration-tests/security