I want to setup multiple organizations that use Mi...
# ory-network
g
I want to setup multiple organizations that use Microsoft SSO, but when I go to the console to add an SSO connection to for an additional organization, I do not see Microsoft as an option. How can I add an additional?
m
Hello @glamorous-midnight-37971 To add multiple providers of the same "type", you follow these steps: 1. export your project config with the Ory CLI: ory get identity-config 2. find the oidc: config: providers. Now copy the existing microsoft provider, add in the new values for clientid/secret, (potentially also change the mapper, supply as base64 encode). 3. make sure to give the new provider a unique id, for example microsoft2 4. to use the new provider for the organization (assuming you already have created an organization) - add to the provider: "organization_id": "bb0a8ac8-eff3-47b2-a545-bf18afd7c664", (<- replace wir your org-id) 5. update project with ory update identity-config 6. now the new provider should be used for the organization.
🙌 2
m
This is actually some important step-by-step guide, that should be documented 😌 Suggestion: • Add this step-by-step guide here: https://www.ory.sh/docs/kratos/social-signin/overview (maybe on a dedicate subpage) • Show already configured providers (disabled, see screenshot) • When hovered show tool tip with link to step-by-step guide
👍 1
1
image.png
b
Honestly, there is no real reason why the UI is limited to one configuration per provider. I think, we'll just change that. WDYT?
m
Sounds also good 😄
Adding a note might’ve just been easier? 🤔
b
I think it's just removing a
.filter(p => !providerExists(p))
from the component 😄 IIRC, we don't make any assumptions anywhere that there is only one config per provider.
😄 1
m
Hmm the assumption might be the ID of the provider, which is pre-set to a readable one?
b
ah, yea I guess that's true. but we can always postfix it with a random string. Shouldn't be a problem. We'll take a look. The CLI approach works for you for now, correct?
m
Yes