>>We make two security filters with different callback filters and during the authorization process there is redirection to the IdP login page. Still, then just one IdP works properly which was declared later in web.xml. Look's like the last configuration overrides everything.
Your Mentioned scenario is possible in pac4j
And the problem mentioned above I think it's because of
sp-metadata-file.xml (you are using the same sp file for both configurations), like you have said you created 2 configs with different callbacks, and so you have to give the sp-file-metadata-file name with different (so overriding would be happening).
and you have to give the
Client name different for both and in security-filter give that one client.
and for each client, you have to define a separate filter, or you have to find a way to pass the client name at runtime to the security-filter.