MultiSet
Developer PortalContact UsTutorials
  • MultiSet Developer Docs
  • Getting Started
    • Changelog
    • MultiSet Unity SDK
      • Universal 3D (Core) support
    • FAQ
  • Basics
    • Maps
      • Mapping Instruction
      • Mapping Planning
      • Mapping Equipment
    • MapSet : Multiple Maps
      • Merging Maps without Overlap
        • Extend a MapSet
      • Merging Maps with Overlap
      • Adjust Map Transformation
    • ModelSet: Object Anchoring
      • How to Create a ModelSet
    • App Localization
    • Credentials
    • Analytics and Usage
    • Downloads
    • REST API Docs
    • WebXR Integration
    • Third Party Scans
      • Matterport
      • Leica Scans
    • MapFoundry
    • Georeferencing Maps
      • How to Align Scans
      • Outdoor-Indoor Transitions with Multiset
    • On-Premises Localization
    • Support
  • Unity-SDK
    • Authentication
    • Sample Scenes
      • Localization
      • Single Frame Localization
      • ModelSet Tracking
      • Navigation
      • Training
    • On-Cloud Localization
      • Individual Map
      • MapSet (Multiple maps)
        • Hint MapCodes
      • Pose Prior : HintPosition
      • GeoHint in Localization
    • Occlusion
    • NavMesh Navigation
    • Multiplayer AR
    • Building Steps
    • API Reference
      • MultisetSdkManager
      • MapLocalizationManager
      • SingleFrameLocalizationManager
      • ModelSetTrackingManager
      • MapMeshHandler
      • ToastManager
  • MultiSet-Quest-SDK
    • Installation Guide
    • Map Mesh Downloader
    • Authentication
    • Sample Scenes
      • Single Frame Localization
  • Native Support
    • iOS Native
    • Android Native
  • MultiSet App
    • Content Space
Powered by GitBook
On this page
  1. Unity-SDK

Authentication

PreviousSupportNextSample Scenes

Last updated 3 months ago

Was this helpful?

CtrlK
  • Authentication Methods
  • Default Authentication (Design-time)
  • Runtime Authentication

Was this helpful?

The MultiSet Unity SDK provides flexible authentication options to integrate with your AR applications. Authentication is required to access MultiSet services and can be configured either at design-time or runtime.

Authentication Methods

Default Authentication (Design-time)

By default, the SDK handles authentication automatically at the start of an AR session using credentials configured in the Unity Editor.

Setup Steps:

  1. Open the MultiSet SDK Manager in Unity

  2. Click on MultiSet Configuration

  3. Enter your Client ID and Client Secret in the MultiSet Config file

  4. The SDK will automatically authenticate when the AR session starts

Advantages:

  • No code required

  • Credentials are stored in the project configuration

  • Authentication happens automatically

Runtime Authentication

For more control over the authentication process, you can pass credentials at runtime and manually trigger authentication.

Select MultiSet SDK Manager and click on Runtime Authentication

Implementation:

Once you check Runtime Authentication, you must call AuthenticateMultiSetSDK() manually when needed

public void AuthenticateSDK()
{
    // Set credentials at runtime
    multisetSdkManager.clientId = clientId;
    multisetSdkManager.clientSecret = clientSecret;

    // Validate credentials before authentication
    if (clientId != null && clientSecret != null)
    {
        // Manually trigger authentication
        multisetSdkManager.AuthenticateMultiSetSDK();
    }
    else
    {
        Debug.LogWarning("Client ID and Client Secret cannot be empty! Please enter valid credentials.");
    }
}

Advantages:

  • Credentials can be loaded from external sources

  • Authentication timing is fully controlled

  • No automatic authentication at AR session start

  • Useful for multi-environment deployments