How to get access token via API POST https://{mydomain}/realms/Resource/protocol/openid-connect/token by password or opt (FE will provide appropriate the param depend on user chose).
I already config the direct grant flow like below on keycloak version 23.0.4
https://i.stack.imgur.com/wSUdC.png
Thank you!
More detail, api returns 401 when I add OTP step and set it to Alternative. If I disable OTP, it returns 200 (https://i.stack.imgur.com/Cu7xy.png)
The Keycloak direct grant flow supports
otpas a param. Which means that you have to sendusername,password,grant_type=passwordandotpwith the number that was generated. Something like this: