# API Contract Test Generator - JWT based authentication

**URL:** <https://community.postman.com/t/api-contract-test-generator-jwt-based-authentication/39809>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [October 5, 2022, 6:04pm UTC](https://community.postman.com/t/api-contract-test-generator-jwt-based-authentication/39809 "2022-10-05T18:04:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drusbergerlenbach](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@drusbergerlenbach](https://community.postman.com/u/drusbergerlenbach)\
**Post date:** [October 5, 2022, 6:04pm UTC](https://community.postman.com/t/api-contract-test-generator-jwt-based-authentication/39809/1 "2022-10-05T18:04:59Z")

</div>

I have to generate automated contract tests by postman’s Contract Test Generator in order to test our productive API against the imported OpenAPI spec 3 scheme. The endpoints which I want to test are protected (JWT based, clientid, client secrect).

[https://www.postman.com/postman/workspace/contract-test-generator/overview](https://www.postman.com/postman/workspace/contract-test-generator/overview)

How can I integrate the authentication flow into those genereated tests?

Thanks in advance  
Remo
