# Is it possible to have 2 auth plugins (oauth2 and jwt) in same route?

**URL:** <https://discuss.konghq.com/t/is-it-possible-to-have-2-auth-plugins-oauth2-and-jwt-in-same-route/11643>\
**Category:** General\
**Created:** [June 29, 2023, 2:13pm UTC](https://discuss.konghq.com/t/is-it-possible-to-have-2-auth-plugins-oauth2-and-jwt-in-same-route/11643 "2023-06-29T14:13:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberto\_Neto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/roberto_neto/32/3503_2.png) [@Roberto\_Neto](https://discuss.konghq.com/u/Roberto_Neto)\
**Post date:** [June 29, 2023, 2:13pm UTC](https://discuss.konghq.com/t/is-it-possible-to-have-2-auth-plugins-oauth2-and-jwt-in-same-route/11643/1 "2023-06-29T14:13:25Z")

</div>

I have a scenario that I need to migrate my token type, from oauth2 to jwt.

But for that, I need to have a transient period to handle requests with the header “Authorization” containing the both tokens types (oauth2 and jwt). I do not want to create a secondary header to handle the jwt token separately, I need to reuse the Authoriation header.

There is possible to create 1 route with that 2 plugins (oauth2 and jwt) plugged-in and handle the token by one of that plugins based on the token pattern/regex?
