# Bypass OTP for external idp login

**URL:** <https://forum.keycloak.org/t/bypass-otp-for-external-idp-login/21319>\
**Category:** Configuring the server\
**Tags:** authentication\
**Created:** [April 5, 2023, 8:25pm UTC](https://forum.keycloak.org/t/bypass-otp-for-external-idp-login/21319 "2023-04-05T20:25:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aghalaryan](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/aghalaryan/32/7708_2.png) [@Aghalaryan](https://forum.keycloak.org/u/Aghalaryan)\
**Post date:** [April 5, 2023, 8:25pm UTC](https://forum.keycloak.org/t/bypass-otp-for-external-idp-login/21319/1 "2023-04-05T20:25:00Z")

</div>

Hello.

I have a requirement to allow users to switch freely from username/password authentication to Google/Microsoft authentication. Also, they need to pass OTP validation while logging into the system via username/password but OTP should be omitted when user authenticates via external idp.

Is there a way to bypass required action - OTP for external idp logins?
