Base solution for your next web application
Open Closed

External Login Providers not visible #4330


User avatar
0
ajayak created

Hi,

I have enabled Google authentication by updating appsettings.json in Host project as follows:

"Google": {
      "IsEnabled": "True",
      "ClientId": "--MY Client Id----",
      "ClientSecret": "--MY Client Password----"
    },

But on frontend, I can't see any external login provider button. On checking in console, I see that this.loginService.externalLoginProviders in login.component.ts is

[]

8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak,

    Have you restarted your host app after this change ?

  • User Avatar
    0
    ajayak created

    Hi @ismcagdas,

    I cleaned the solution and rebuilt again. Still no success.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak,

    Social logins are only available for tenants. Can you see the icons when you change the tenant on login page ? You can try with Default tenant.

  • User Avatar
    0
    ajayak created

    Hi @ismcagdas,

    I see. I have disabled multi-tenancy for my application. In this case, how can I use external providers?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak,

    If multi tenancy is disabled, then you must be able to see social login icons. Can you see other icons for example for facebook if you configure it ?

  • User Avatar
    0
    ajayak created

    Hi @ismcagdas,

    I have set all External login providers to "True" but I still can't see any icon on login page :?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak,

    Thank you for your report, issue is fixed here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/666">https://github.com/aspnetzero/aspnet-ze ... issues/666</a>. Can you try the same solution ? <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/b0b7919006f4d6b8e596c4aeff0bd9ee2b99414c">https://github.com/aspnetzero/aspnet-ze ... ee2b99414c</a>

  • User Avatar
    0
    ajayak created

    Thanks @ismcagdas :)