MultiSet
Developer PortalContact UsTutorials
  • MultiSet Developer Docs
  • Getting Started
    • Changelog
    • VPS SDK : Unity Guide
    • 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
    • App Localization
    • Credentials
    • Analytics and Usage
    • Downloads
    • REST API Docs
    • WebXR Integration
    • Third Party Scans
      • Matterport
      • Leica Scans
    • MapFoundry
    • Georeferencing Maps
    • On-Premises Localization
  • Unity-SDK
    • Authentication
    • MultiSet package import
      • Universal 3D (Core) support
    • Sample Scenes
    • On-Cloud Localization
      • Individual Map
      • MapSet (Multiple maps)
        • Hint MapCodes
      • Pose Prior : HintPosition
    • Occlusion
    • NavMesh Navigation
  • Support
  • Native Support
    • iOS Native
    • Android Native
Powered by GitBook
On this page
  • Authentication Methods
  • Default Authentication (Design-time)
  • Runtime Authentication

Was this helpful?

  1. Unity-SDK

Authentication

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

PreviousOn-Premises LocalizationNextMultiSet package import

Last updated 16 days ago

Was this helpful?