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.

Official Authentication now supports Oculus (Meta Quest)!

Discussion in 'Authentication' started by chengg_unity, Oct 26, 2022.

  1. chengg_unity

    chengg_unity

    Unity Technologies

    Joined:
    May 15, 2022
    Posts:
    59
    Hello everyone,

    We are excited to announce that Unity Authentication now supports Meta Quest (Oculus) Sign-In!

    Demo
    You can see it in action here:
    upload_2022-10-26_11-18-31.gif

    Documentation
    You can refer to our documentation (API and SDK) on how to set up and configure Oculus Sign In.

    What’s Next?
    We are currently evaluating to provide support for Apple Game Center, Twitch and Discord. Please let us know if you have any questions or feedback!
     
    Last edited: Oct 26, 2022
  2. DavidZobrist

    DavidZobrist

    Joined:
    Sep 3, 2017
    Posts:
    203
    Thank you :)
     
  3. adrian-taylor09

    adrian-taylor09

    Joined:
    Dec 22, 2016
    Posts:
    53
    Hi there,

    I'm probably missing something simple, but the examples you provided show how to Add Oculus as an authentication provider and then how to obtain the necessary information from the Oculus Integration package, but nothing that shows how to actually sign in the user with the Authentication package.

    Any chance we could see a code snippet of some kind?
     
  4. adrian-taylor09

    adrian-taylor09

    Joined:
    Dec 22, 2016
    Posts:
    53
    As it turns out, I was indeed missing something simple.

    The Oculus platform methods for the Authentication package were added in version 2.3.0, I had to manually update my Authentication package in the manifest in order to be able to access these
     
    mahdik_unity and chengg_unity like this.
  5. mahdik_unity

    mahdik_unity

    Unity Technologies

    Joined:
    Sep 16, 2021
    Posts:
    15
  6. adrian-taylor09

    adrian-taylor09

    Joined:
    Dec 22, 2016
    Posts:
    53
    Either I'm blind, or that code sample doesn't actually show how to authenticate with Oculus, it shows you how to retrieve a users Oculus details and leaves you with a comment:

    // Authentication can be performed here.

    It's not particularly difficult after that, you just call:
    Code (CSharp):
    1. AuthenticationService.Instance.SignInWithOculusAsync
    But unless you have the most up to date Authentication package (which isn't installed by default as a dependency) then you have no idea that method even exists
     
    justdizzy likes this.
  7. BraindanceDev

    BraindanceDev

    Joined:
    Oct 25, 2022
    Posts:
    14
    AuthenticationService.Instance.SignInWithOculusAsync(oculusNonce, userId);

    always returns:

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