Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Internal methods used in ExternalAuthenticate API of TokenAuthcontroller not working #11805


User avatar
0
huntethan89 created

Hi, Following are the two APIs which are not working when authenticating user externally using provider and providerAccessCode.

  1. The API TokenAuth > GetExternalAuthenticationProviders() return null even if the external login (Google) is successfully integrated in the application.
  2. The method CreateProviderApi in ExternalAuthManager class is giving exception for "Unknown external auth provider". As I checked the code for this from github, it seems like ExternalAuthConfiguration.Providers is not returning the provider info for the provider's name passed as parameter.

Could you please check and assist how to proceed?

reference:

  • Internal code which is not returning the provider info for the provider name.

  • method call which returns exception


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

    Hi @huntethan89

    Could you share the JSON input for ExternalAuthenticate method ? Please hide the important fields in your post.

  • User Avatar
    0
    huntethan89 created

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks, this seems fine. Is the Google section enabled in your appsettings.json file ?

    If it is, are you trying this as a tenant or host ?

  • User Avatar
    0
    kansoftware created

    @huntethan89 Were you able to find a solution for this?

    @ismcagdas I am too facing the similar error. I have enable OpenId in appsettings.json and also configured for a tenant. But I am too getting the same error