Search Unity

Question Authentication of Unity Game using Azure AD

Discussion in 'Authentication' started by Singh_Dhruv, Jan 13, 2023.

  1. Singh_Dhruv

    Singh_Dhruv

    Joined:
    Jan 13, 2023
    Posts:
    1
    I'm currently working on a Unity Project, our client asked us to integrate the web app with Azure AD to authenticate the user.
    My query is How to make a player authentication and identity system for unity based web app using Azure AD.
     
  2. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    282
    Hi there,

    Thanks for posting on the forums.
    You could try using Authentications OpenID

    Since Azure AD supports OpenID you would be able to user Azures ID to link with Unity Authentication.
    Hope this helps you out.

    Best,
    Seb
     
  3. BSimonSweet

    BSimonSweet

    Joined:
    Aug 17, 2022
    Posts:
    67
    Hi, I'm following this thread because we are also setting up Azure AD B2C for Unity Authentication.

    We encounter one issue : when we want to add the Open ID provider on the Dashboard, we need an "OIDC Name" value, but we are not sure where to get this value. There is no documentation about that on Azure and it seems that we need to provide a proper value, otherwise we can't add the provider.
     
    Thismaker likes this.
  4. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    282
    Hi BSimonSweet,

    Thanks for posting on the forums.

    The OIDC name can be anything that you choose fit. As long as it is between 6 and 20 characters and starts with oidc-

    example: oidc-myoidcname12345


    Hope this helps you out
     
    chengg_unity likes this.
  5. mcohen_sweetsport

    mcohen_sweetsport

    Joined:
    Apr 19, 2023
    Posts:
    1
    Hi,

    We still can't add our provider. We are almost sure of the 2 data we enter (Client ID and Issuer) are correct but we systematically get the error: "INVALID_PARAMETERS" and in detail: "error getting openid-configuration".

    We previously tested this provider on another openId connect solution and had no problems.

    Do you have any tips or a solution?
     
    ScorcherRecgroup and Dan4x8 like this.
  6. flaming910

    flaming910

    Joined:
    Jan 19, 2018
    Posts:
    3
    did anyone here manage to get this working? would like to be able to have social logins(ie. google, microsoft, etc.) through b2c working through a unity app