I have deployed a base deployment of arcgis enterprise 10.7.1 with components portal, server, datastore, two web adaptors one for each for portal and server. By using the option of 'Enterprise Logins via SAML' I federate keycloak 6.0.1(IDP supports SAML 2.0) to the portal. Currently, I am able to access the portal and server in the web browser using 'enterprise login' and users available in keycloak. Is it possible to do it programmatically using python? If so please share some resources.
Just to be sure, when you say python, do you want to access portal resources like items/content or you want to query a feature service using a federated identity or probably both?
What happens when you try try creating a portal/server token using the federated identity?
I want to access both portal resources and query a feature service using the federated identity.
When I try to create a portal/server token using the federated identity it gives error "Invalid username or password."