
gs27j (gs27j) asked a question.
Hello everyone!
Has anyone had to add a "Log in with Okta" button to your application's login page, similar to how you can log in with Google, GitHub, Microsoft, and so on?
I'm currently dealing with a challenge where I can only set up this kind of integration for one Okta account (organization, realm). Unfortunately, it doesn't work for other accounts (companies). For instance, I've configured SAML or OAuth integration using my Okta developer account and linked it as an Identity Provider (IdP) in Keycloak. When I click the "Log in with Okta" button, it always redirects me to the authentication page at "https://dev-12345678.okta.com/app/dev-12345678_appname/somehash/sso/saml". However, the issue is that users from different Okta accounts, not associated with my organization, can't use this authentication method.
If anyone has encountered a similar problem and can offer potential solutions, I would greatly appreciate it.
Thank you!

Hi @gs27j (gs27j) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work).
In the case of Okta as an IDP, account federation happens at tenant(org) level.
The way I'm seeing things, you have the following options:
1.You'll need to have the users in your org.(add them manually, or imports/external IDP)
OR
2.Implement self-service registration.
OR
3.If you are the app owner, add it to the OIN (Okta Integrations Network) and make the integration public so that any Okta customer can set it up in their org. In this case, the app would need to support multiple IDPs or offer services per tenant.
That being said, I still recommend checking on the Developer side for confirmation and further advice.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Follow us at OktaSupport