
7o6hi (7o6hi) asked a question.
Hello everyone!
Has anyone had to add a "Log in with Okta" button to your application's login page.
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. When I click the "Log in with Okta" button, it always redirects me to the authentication page at "https://trial-8477863.okta.com/oauth2/v1/authorize?client_id=0oa9v81bnlR47Ybmp697&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Foktaoauth%2Fcallback&response_type=code&scope=openid+profile+email&state=835b84b6f630ab2031eb1e3135459423d3323c7defab7bd2". 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!

Hello @7o6hi (7o6hi) Thank you for reacting out to our Community!
Please see a similar question on our Developer forum:
https://devforum.okta.com/t/on-login-page-display-button-of-okta-for-okta-domain-login/7243
Please also see this documentation that has an example on how to setup a login button to your application:
https://developer.okta.com/blog/2019/09/24/how-to-create-a-symfony-app-with-authentication
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Community members help others by clicking Like or Select as Best on responses. Try it today.
Earn Today: New Okta Community Badges Have Arrived