Okta sso login in angular 5

Just to be clear, we have a web application . We also have a separate customer who already uses Okta to manage his employee’s access to various applications. This client wants to use Okta SSO for login to our app.

We created a trial Okta account and integrated a “login with Okta” button based on documentation here for a Node/Angular App https://developer.okta.com/quickstart/#/angular/nodejs/generic

This method allows authentication for users who have an account in our Okta. However, this does not seem right as future customers would have users tied to their own accounts .

How do we solve this? As per the below email - do you mean that we need to register with OIN and only then it is possible for other Okta accounts to enable SSO into our app? Please clarify and let us know if a Video call is possible.

Would appreciate your urgent help.

Where you able to find an answer? I am looking for documentation regarding the same topic.

Hi @Rey @jatin

If you publish the application through oinmanager.okta.com to have it available for all Okta customers, they will be able to use it on their end once they provided the client ID and client secret inside your application.

@dragos I have enabled the feature flag idp Discovery as it shows in https://github.com/okta/okta-signin-widget#idp-discovery

var signIn = new OktaSignIn({
baseUrl: ‘https://{yourOktaDomain}’,
… …
features: {
idpDiscovery: true

However, I am wondering how regular users that do not have SSO can login using the primary authentication flow by using their username and password. I am not able to redirect the users with the primary authentication flow to the homepage of the application. Is there any documentation I can follow, is there any additional logic to add in the widget?