Linking SAML account and want to require user to enter password before linking

Hi @jeremybong, thank you for adding more context.

I did some digging, and the problem seems to be that the api.redirect.sendUserTo() method is not meant for this use case, and it’s what causes the infinite loop.

I couldn’t find a feature specifically designed for your use case, but there are a couple of things I think you could try:

  1. Forcing a user to authenticate, as described by my colleague Rueben in this community topic.

  2. Use the Resource Owner Password Grant flow to verify the current password as described in this Knowledge Article for a similar topic, verifying the current password before changing to a new password.

I hope this helps you!

Kind regards,
Teodor.