ユーザー管理

ユーザー管理

ゲームバックエンドのための包括的なプレイヤー認証 & ID 管理

無料で始める

マルチ認証対応

メール、匿名ゲストアカウント、Apple Sign-In、Google OAuth に対応。プレイヤーが好きなサインイン方法を選べます。

ロールベースのアクセス制御

ロールを割り当ててユーザーごとの権限を制御。管理者とプレイヤーのロールシステムを標準搭載。

クロスプラットフォームセッション

プレイヤーは一度ログインするだけで、すべてのデバイスでシームレスに認証状態を維持できます。

App Store コンプライアンスをすぐに満たせます

horizOn User Management は Sign in with Apple に対応しました。Team ID、Services ID、Bundle ID を一度登録するだけで、iOS ビルドはすぐに準拠できます。

クイック統合

クイック統合

MyGame 認証

おかえりなさい、プレイヤー

player@example.com
••••••••
Unity (C#)
// Unity C#: User Authentication
using PM.horizOn.Cloud.Core;
using PM.horizOn.Cloud.Manager;
using UnityEngine;

// Once at startup: reads the imported horizOn config (API key and hosts)
HorizonApp.Initialize();
await new HorizonServer().Connect();

// Sign up with email (true on success)
bool created = await UserManager.Instance.SignUpEmail(
    "player@example.com", "securePassword", "PlayerOne");

// Sign in on a later start
bool signedIn = await UserManager.Instance.SignInEmail("player@example.com", "securePassword");

// Or start as a guest without an email
bool guest = await UserManager.Instance.SignUpAnonymous("GuestPlayer");
Debug.Log($"Player id: {UserManager.Instance.CurrentUser.UserId}");
REST
# REST API: User Authentication

# Sign up with email
curl -X POST https://horizon.pm/api/v1/app/user-management/signup \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"EMAIL","email":"player@example.com","password":"securePassword","username":"PlayerOne"}'

# Sign in with email (the reply holds userId and accessToken, the player's session token)
curl -X POST https://horizon.pm/api/v1/app/user-management/signin \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"EMAIL","email":"player@example.com","password":"securePassword"}'

# Anonymous sign up (guest account)
curl -X POST https://horizon.pm/api/v1/app/user-management/signup \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"ANONYMOUS","username":"GuestPlayer"}'

これらの例では、Unity SDK(C#)とREST APIを使っています。GodotとUnrealでも、それぞれのSDKで同じ呼び出しができます: クイックスタートを参照

よくある質問

よくある質問

統合の準備はできましたか?

horizOn で今日からゲームバックエンドを構築しましょう。無料プラン付き。