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
    3 Posts 2 Posters 3.1k Views
    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

      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

      danD 1 Reply Last reply
      Reply Quote 1
      • danD
        dan @marcos.fernandez
        last edited by

        @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 - Identity Without Constraints
        https://fusionauth.io

        M 1 Reply Last reply
        Reply Quote 0
        • M
          marcos.fernandez @dan
          last edited by

          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
          • danD dan moved this topic from Q&A on
          • danD dan moved this topic from Frequently Asked Questions (FAQ) on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post