ĐARK々MÁTTER
ĐARK々MÁTTER14mo ago

How to select the login configurations from the client_id

I am new to zitadel (just installed few mins back) and configured two organzations The following are the mocked information,
ORG Zitadel (Already created for us)
Project ExploreZitadel:
App: Testing
client_id: 00000000@zitadel-default
IdPs configured: Google

ORG A:
Project A:
App A:
client_id: 123456@app-a
IdPs configured: Microsoft
ORG Zitadel (Already created for us)
Project ExploreZitadel:
App: Testing
client_id: 00000000@zitadel-default
IdPs configured: Google

ORG A:
Project A:
App A:
client_id: 123456@app-a
IdPs configured: Microsoft
When I am redirecting to the authorize url, the client Id is of App A client_id=123456@app-a, but I am seeing the google external login only. Then changed default org to ORG A and it is working. Now it works if I have only one ORG, but I will be having 2 3 orgs for different teams. Please help me fix it
5 Replies
ĐARK々MÁTTER
ĐARK々MÁTTEROP14mo ago
I am hosting on the custom domain. https://identity.example.com The primary domain of my organization is https://org-a.identity.example.com. But in the URLs section under the app I am seeing https://identity.example.com
fabienne
fabienne14mo ago
Per default always the login of the default organization is shown as soon as ZITADEL identifies the organization, for example when the user has entered the username, the login of the org of the user will be shown if you do want to pre select an organization, you can also send the organization scope in the auth request
fabienne
fabienne14mo ago
ZITADEL Docs
ZITADEL supports the usage of scopes as way of requesting information from the IAM and also instruct ZITADEL to do certain operations.
fabienne
fabienne14mo ago
urn:zitadel:iam:org🆔{id} if you send the scope, also only users of that organization will be able to login
ĐARK々MÁTTER
ĐARK々MÁTTEROP14mo ago
Yes this is helpful because I could have same users in 2 orgs Also when you write such scope, please enclose them in backticks urn:zitadel:iam:org:id:{id}

Did you find this page helpful?