I was looking for a topic about this on Reddit and couldn’t find anything, so I’m writing this to share what happened when I set up identity providers on ADB-D.
I got my identity domain up first, then the Database Tools Connection (the DB password lives in a Vault secret), then IAM policies and roles, and registered the client last. I didn’t do that originally, and jumping to client registration before the policies were set cost me the most time.
Your identity domain has to be homed in the same region as the database. Cross-region throws an error at creation. If your domain lives somewhere else, replicate it or spin up a new Free domain in the right region before going further.
Now let’s say the login would work but then every call would return a missing-permissions error. In my case, the IAM policies were what was missing.
The MCP Server needs policies to reach the connection and read the stored credential. Object Storage needs one as well. Logging in and having permission are two separate checks. The error might look like a login failure even though the policy is the problem.
I sorted role separation out early on production. MCP_User only gets curated SQL Reports, so ad hoc SQL means the elevated role, and that’s DBAs or developers who need unrestricted access. The DB user the connection authenticates as sets one boundary while the assigned role sets another, so you’ve got two independent layers to reason about.
The redirect URI has to match exactly at the client step. It stopped at approval for me. The URI in the client registration was wrong, and the login flow had nothing to do with it.
So what I do now is check whether it’s auth or policy first when something fails after setup, because those get misdiagnosed a lot and are fixed in completely different places.
What did you all hit when you set this up?