Kanda Foundation 0.8.0
Loading...
Searching...
No Matches
Unity Services Authentication

The Kanda SDK allows you to require OpenID Connect authentication for Unity Services. This guide will help you set up player authentication and configure the Kanda SDK package to enforce it.

Configuring OpenID Connect Authentication

1. Setting up Identity Providers in Unity Cloud

It’s important to set up identity providers correctly, as these details will be validated against the ID token issued by the identity provider configured for the cloud solution in the SDK settings.

To set up identity providers, you must first acquire the Client ID and OIDC Issuer (URL). If you are hosting a Cloud solution, these values can be found in the identity provider used for your hosted Cloud environment. If you are using Kanda Cloud, these values can be provided by the Cloud team.

  1. Go to https://cloud.unity.com/.
  2. Select the project that your Unity project is linked to.
  3. Navigate to Player Authentication > Identity Providers.
  4. Click on Add Identity Provider > OpenID Connect.

Alternatively, you can set this up directly from Project Settings as part of the com.unity.services.authentication package:

  1. Navigate to Project Settings > Services > Authentication.
  2. Select OpenID Connect and click Add.

2. Configuring Kanda SDK

You can configure the identity provider for three environments:

  • Production
  • Staging
  • Development
  1. Go to Project Settings > Kanda SDK > Unity Services.
  2. Enable Require OIDC Authentication.
  3. Enter the provider name(s) for the relevant environment(s) that you set up in the first step.