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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Steam SignIn 401 unable to validate token

Discussion in 'Authentication' started by huguesstock, Mar 25, 2023.

  1. huguesstock

    huguesstock

    Joined:
    Mar 9, 2023
    Posts:
    2
    Hello, I'd like for my users to use steam to sign in to the the game, and after use friends list, etc... unfortunately I'm having an issue. When trying to log in with steam using
    Code (CSharp):
    1. await AuthenticationService.Instance.SignInWithSteamAsync(m_SessionTicket);
    2.  
    This returns the following error :

    [Authentication]: Request failed: 401, {"title":"PERMISSION_DENIED","detail":"unable to validate token","details":[],"status":401}


    I have followed the steps and have added the identity provider with app id being 480 and the key I found https://steamcommunity.com/dev/apikey but it isn't working. I do think the error is related to the app id and key I have inputed but I cannot find a solution. Keep in mind I do not have a steamworks app as this is a project and I don't want to pay 100$ (that's why I put 480 in appid).
    Please If you have any insight related to this, I'd really appreciate it.
     
  2. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    268
    Hi there,
    You must have a valid AppID and account to be able to link with Steam.
    The error you are getting seems to relate to you trying with an AppID that isn't yours?

    Please refer to the following docs for more information:
    https://docs.unity.com/authentication/en/manual/set-up-steam-signin

    Let me know if it fails once you have your own AppID so I can continue helping you out.
     
  3. huguesstock

    huguesstock

    Joined:
    Mar 9, 2023
    Posts:
    2
    I'm developing a game, and to be able to create an app, I need to pay 100$ to steam.
    480 is supposed to be the developer code, but I don't want to pay if I don't need to.