• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Error when trying to log with Google at FusionAuth admin control panel

Scheduled Pinned Locked Moved Unsolved
Q&A
2
3
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    marcos.fernandez
    last edited by 27 Jul 2022, 09:58

    Hi, we have upgraded to latest version available at this moment, 1.36.8, and now we are getting a javascript error when trying to log with a Google account. You could see this error at the console just when you load the administrator login page:

    bdf7ae19-42c1-4212-8ed6-07b1051cf159-image.png

    This happens when you load it for the first time and your browser cache is empty. After that moment, sometimes it loads or not.

    We use another theme for a different tenant and we managed to fixit adding the load of Helper.js script file:

    [#macro alternativeLoginsScript clientId identityProviders]
      <script src="/js/identityProvider/Helper.js?version=${version}"></script>
      [#if identityProviders["Google"]?has_content]
        <script src="https://apis.google.com/js/api:client.js"></script>
        <script src="/js/identityProvider/Google.js?version=${version}" data-client-id="${identityProviders["Google"][0].lookupClientId(clientId)}"></script>
      [/#if]
    [/#macro]
    

    Thanks,
    Regards

    D 1 Reply Last reply 16 Aug 2022, 02:55 Reply Quote 1
    • D
      dan @marcos.fernandez
      last edited by 16 Aug 2022, 02:55

      @marcos-fernandez Are you using cloudflare or another CDN which might be injecting JS into the DOM?

      This sounds a bit like this issue: https://github.com/FusionAuth/fusionauth-issues/issues/1731 which I think has some workaround (in terms of modifying the way the script is found: https://github.com/FusionAuth/fusionauth-issues/issues/1731#issuecomment-1148161077 ).

      If you can provide repro steps and file a bug, that would be much appreciated: https://github.com/fusionauth/fusionauth-issues/issues

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      M 1 Reply Last reply 16 Aug 2022, 06:11 Reply Quote 0
      • M
        marcos.fernandez @dan
        last edited by 16 Aug 2022, 06:11

        Hi @dan, thanks for your answer. In our case, we are accessing directly to the FusionAuth instance and we started to get this error after the last upgrade to 1.36.8.

        I will fill an issue.

        Thank you very much,
        regards

        1 Reply Last reply Reply Quote 1
        • First post
          Last post