# Issue in Two factor authentication and Forgot password Rest API in keycloak version 23.0.3

**URL:** <https://forum.keycloak.org/t/issue-in-two-factor-authentication-and-forgot-password-rest-api-in-keycloak-version-23-0-3/24283>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [January 30, 2024, 6:00am UTC](https://forum.keycloak.org/t/issue-in-two-factor-authentication-and-forgot-password-rest-api-in-keycloak-version-23-0-3/24283 "2024-01-30T06:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunachalam6](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/arunachalam6/32/9646_2.png) [@Arunachalam6](https://forum.keycloak.org/u/Arunachalam6)\
**Post date:** [January 30, 2024, 6:00am UTC](https://forum.keycloak.org/t/issue-in-two-factor-authentication-and-forgot-password-rest-api-in-keycloak-version-23-0-3/24283/1 "2024-01-30T06:00:34Z")

</div>

Hello there,  
I’m currently facing an issue with 2FA and forgot password REST APIs that are not working properly.

https://{keycloak url}/auth/admin/realms/{realm name}/users/{userid}/execute-actions-email  
For 2FA -  
Headers =\> Authorization Token  
Method =\> PUT  
Request body =\> [“CONFIGURE\_TOTP”]

Response: Status code= 403 (forbidden)  
{  
error: “unknown\_error”  
}

https://{keycloak url}/auth/admin/realms/{realm name}/users/{userid}/execute-actions-email  
For Forgot password -  
Headers =\> Authorization Token  
Method =\> PUT  
Request body =\> [“UPDATE\_PASSWORD”]

Response: Status code= 403 (forbidden)  
{  
error: “unknown\_error”  
}

Kindly assist me in sorting this out.
