Following @leastprivilege answer in my previous question, I concluded that neither are possible solutions:
Solved it after some research. You'll need this three steps:
PreAuthentication method and sets the SignInMessage message.Idp with your middleware id. Code sample: check it here/signing-dummy