Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Why is remote config corrupting the Unity ID session?

Discussion in 'Unity Remote Config' started by magnusfox, Feb 18, 2020.

  1. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    When logging in to Unity remote config dashboard, the session from other Unity services is invalidated/corrupted. More specifically, when trying to load analytics data explorer after visiting remote config results in:

    Blocked by Content Security Policy

    All other services from Unity use the same login session without any hassle.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I browsed to my Analytics Data Explorer page, and copied the URL. I then browsed to my Remote Config Dashboard from my landing page (first clicked on Go to Dashboard at the top of the Services window in the Unity Editor). With my RC dashboard showing, I pasted in the URL to my Analytics Dashboard and it worked as expected. Can you elaborate if your steps were different?
     
  3. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    It's not straightforward to reproduce, but it happened to me just now again. I entered RC yesterday, when coming back today the content of Analytics/Data Explorer was once again blocked by "Content security policy" and I had to log out and back in. This happens only when interacting with RC, not when just using Analytics/Cloud Build/Ads etc.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please describe the steps you take so we may attempt to reproduce. How do you go from the RC page to your Analytics page, there is no direct link on the page.
     
  5. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    I'm struggling to find ways to reproduce, but it happens regularly. I'll post again as soon as I found out more about when it happens.

    I'm using different tabs to access analytics and remote config, and it's when I've been using either of the tools back and forth for a couple of days that it happens. As mentioned, this does not happen with any of the other tools inside of the *.unity3d.com-site.
     
  6. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    OK, so when once again accessing remote config and then going back (the next day) to Unity Analytics, the following error is displayed (in Firefox):


    Please note that this issue does not happen when browsing any other of the Unity services, may it be cloud build, ads or whatnot.
     
    Last edited: Jul 9, 2020
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Do you mean your browser was open and idle the whole time? Does refreshing/restarting the browser work for you? Your session likely timed out.
     
  8. magnusfox

    magnusfox

    Joined:
    Nov 7, 2014
    Posts:
    26
    The browser was closed during the night of day 1, and re-opened in the morning day 2. When remote config is not used, the session survives this and I can use all services (cloud build, analytics etc) in multiple tabs without re-logging in. However, when remote config has been visited, it does not work (i.e, it produces the security error in the above image).

    Refreshing/restarting does not help, only signing out and signing in again works.
     
    Last edited: Jul 9, 2020
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Got it, I will try to reproduce here. Seems that the only thing that could be persisted after completely shutting down the browser and restarting the next day would be a cookie. Clearing the local cache would help to confirm, but would likely require you to log in again anyway. So it is not a solution, just a troubleshooting step.
     
    magnusfox likes this.