Does AuthzClient.authorization(String, String) support federation?

we’re using the org.keycloak.authorization.client.AuthzClient.authorization(String, String) API in order to be able to provide our own UI for login with Keycloak. Now we’d like to combine this with user storage federation using AD as described here: Server Administration Guide . Is it corrected that the above API will work in combination with user storage federation?

We’d also like to federate with another existing OAuth2/OIDC server, but as that works through URL redirects with the password being entered on an external page of the other Oauth2 server, I guess this cannot be combined with the AuthzClient.authorization(String, String) API? At least I wouldn’t know how this could possibly work.

Thanks for any hints + regards,