Hi, is there a way to login SSO users using an API...
# ory-network
b
Hi, is there a way to login SSO users using an API login flow? We'd like to be able to do a login flow programmatically so that developers can get JWT's, and all of the developers are using SSO. We were previously setting a password on the SSO users and then using the password for the login flow, but it looks like that's disallowed now:
Login for this identity must use the SSO provider of organization The Weather Company
Executing this and then going to the returned URL results in this error:
The browser does not contain the necessary cookie to resume the session
Copy code
curl --location '<https://our-domain.com/self-service/login?flow=my-flow>' --header 'Content-Type: application/json' --data-raw '{                                                                                                                                                                                                                         "method": "oidc",
    "provider": "nGwrPI_e"
}'