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.

Bug 403 UNAUTHORIZED_REQUEST

Discussion in 'Authentication' started by timbokoppers, Jun 27, 2022.

  1. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    66
    Hi,

    My unity account is in multiple organisations, and I get this error when click on project settings -> services -> authentication :

    Code (CSharp):
    1. [Authentication]: Error message: {"title":"UNAUTHORIZED_REQUEST","detail":"not authorized for organization: xxxxxxxxx","details":[],"status":403}
    But the xxx number is not the organisation where the project is linked to. That is the number from another organisation which is not related or linked to this project.

    Any clue? It's in the editor, unity version 2021.3.3f
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I have heard reports that you need to reboot after changing accounts in the Hub, something to check anyway. The message is concerning however.
     
    timbokoppers likes this.
  3. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    66
    You can't change account in the hub, I mean it just one user account, but that user account is in multiple organisations. But going to reboot anyway, maybe it helps
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Ah got it. So assuming you've selected the right organization in the Unity Editor.
     
  5. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    66
    Yeah I guess, there is not an option to select an active organisation for your account in the editor (something like switch organisations). The project in the editor is linked to the right organisation, that's for sure.
     
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you share a screenshot of your project settings window? You can also go to Package Manager/Authentication/Configure I'm using Authentication 2.0.0 in this test project.
     
  7. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    66
    CleanShot 2022-06-28 at 09.04.03@2x.png

    I'm also using 2.0.0 Authentication.
     
  8. Laurie-Unity

    Laurie-Unity

    Unity Technologies

    Joined:
    Mar 5, 2020
    Posts:
    169
    Hi,

    Thanks for sharing your Authentication settings page. I think your issue actually stems from the Organization and Project settings on the root Services page. I suspect you are linked to the wrong organization and project in there. There are controls to unlink and connect to the correct project there though.

    upload_2022-6-29_8-13-1.png
     
  9. timbokoppers

    timbokoppers

    Joined:
    Nov 14, 2016
    Posts:
    66
    No actually the organisation in the root services page is correct. You see the there id starts with 'b49', that is correct. But in the console and on the authentication page it shows the id (starting with '90' of another organisation (which is also in my developer profile)

    CleanShot 2022-06-29 at 17.58.25@2x.png CleanShot 2022-06-29 at 18.00.40@2x.png
     
  10. cihadturhan_unity

    cihadturhan_unity

    Joined:
    Apr 19, 2021
    Posts:
    37
    I'm having the exact same issue.
    I have my personal unity account CT and company account ST.
    I logged out from CT and logged in to ST. It still shows the 403 error.
    I've closed hub and editor and didn't work. I'll reboot computer now as suggested above.
    Will share if it works.
     
  11. cihadturhan_unity

    cihadturhan_unity

    Joined:
    Apr 19, 2021
    Posts:
    37
    It didn't work. How can I remove old credentials? It still gathers them from somewhere
     
  12. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    178
    @cihadturhan_unity
    @timbokoppers

    Hello to the both of you. Would it be possible for you to send in your ORGID + PROJECTID directly to me in a DM?
    We would like to investigate what may have went wrong here.

    Look forward to your Direct messages.

    NB: Click on my name above the profile picture then click on "Start a conversation"
     
  13. Dr_Shtenzel

    Dr_Shtenzel

    Joined:
    Jan 5, 2017
    Posts:
    2
    I've got same problem after transferring my project to another organization. Making new Unity Project ID solved issue.