Add an isOAuth Mustache block to set a bearer token


- This change is a prerequisite for the
OAuth 2.0 Authorization Code Flow example.

- The OAuth 2.0 flow itself is not implemented in the generated
code. The application is responsible for obtaining the access token,
for example, using Qt Network Authorization.
The generated code only needs to ensure that the provided access token
is sent in the Authorization header as a Bearer token.

Pick-to: 6.12
Task-number: QTBUG-151026
Change-Id: Ic2dd17723bf793d5ccfdafc3fab224a7d2e085c8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit66c6643a93272c59e26933061867f492c73891b1
parent3dd23bb9b64d53caa66d4d87bd888e4bac99c65d
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeThu, 22 Oct 2026 08:52:56 +0000