Xsolla-logo

ユーザーの新規登録

post/oauth2/user

新しいユーザーを作成します。

  • ユーザー データをエクソラまたはカスタム ストレージに保存する場合、ユーザーはアカウント確認メールを受信します。
  • ユーザー データをPlayFabに保存する場合は、ユーザーにアカウント確認メールを送信するように設定できます。これには PlayFabに関する説明を使用してください。
  • ユーザー データをFirebaseに保存する場合、ユーザーはFirebase 側からのアカウント確認メッセージを受け取ります。

ユーザーデータストレージの詳細については、ユーザーデータストレージの比較ページを参照してください。

Request
query Parameters
response_type
required
string

OAuth 2.0プロトコルが有効なプロジェクトで使用されるグラントタイプ応答に含まれるユーザー認証コードを取得するためにcodeである必要があります。受け取ったコードはJWTを生成するのコールによってJWTに交換され、ユーザー認証が完了する必要があります。

client_id
required
integer

アプリケーションID。OAuth 2.0クライアントを作成した後で取得します。

state
required
string

追加のユーザー認証に使用される値。CSRF攻撃を軽減するためによく使用されます。この値は応答で返されます。8文字以上の文字列である必要があります。

scope
string

スコープは、ユーザーのアカウントへのアプリケーションのアクセスを制限するOAuth2.0のメカニズムです。

以下の値を指定できます:

上記以外のscopeパラメータ値を独自に処理する場合、このコールを使用する際に設定することができます。エクソラログインサーバーはこれらの値を処理しませんが、受信したJWTで返します。

audience
string

Identification parameter of the application the token was issued for. Parameter value will be passed in the aud JWT field.

redirect_uri
string

URL to redirect the user to after account confirmation, successful authentication, or password reset confirmation. To set up this parameter, contact your Customer Success Manager or email to csm@xsolla.com.

Notice
The parameter is required if you have more than one redirect URI in your project settings.
Request Body schema: application/json
username
required
string [ 1 .. 255 ] characters

ユーザー名。

password
required
string [ 6 .. 100 ] characters

ユーザーパスワード。

email
required
string [ 1 .. 255 ] characters

ユーザーのメールアドレス。

accept_consent
boolean

ユーザーが個人データの処理に同意したかどうか。

fields
object

Parameters used for extended registration form. To use this feature, please contact your Customer Success Manager.

promo_email_agreement
integer >= 0
Default: 1

ニュースレターを受け取ることにユーザーが同意します。

Enum: 0 1
Responses
200

OK(アカウント確認は無効になっています)

204

コンテンツなし(アカウント確認が有効になっています)

400

無効なリクエスト

404

見つかりません

422

処理不可能なエンティティー

429

リクエストの回数が多すぎます

Request samples
application/json
{
  • "email": "john-email@email.com",
  • "fields": {
    },
  • "password": "password123",
  • "username": "John"
}
Response samples
application/json
{
  • "login_url": "string"
}