# 認証

## 概要

RealmJoin バックエンドは、アプリケーションの認証情報（ユーザー名とシークレット）を想定しています。

ユーザー名とシークレットは、RealmJoin 運用チームが作成します。RealmJoin をご自身のツールやプロセスに統合したい場合は、どうぞお気軽にお問い合わせください！

## 例

説明のため、作成されるユーザー名が次のものであると仮定します `t-12341234`そしてシークレットが `myS3cret!`.

認証するには、ユーザー名とパスワードをコロン（`t-12341234:myS3cret!)`）で区切って連結し、Base64 文字列にエンコードします。

この例のユーザー名とシークレットは次のようにエンコードされます `dC0xMjM0MTIzNDpteVMzY3JldCE=`

以後、RealmJoin バックエンドサービスに対する各リクエストで、結果の Authorization を含む HTTP ヘッダーを送信してください：

```
Authorization: Basic dC0xMjM0MTIzNDpteVMzY3JldCE=
```

その後、RealmJoin はあなたの環境内のリソースにアクセスできるようにします。あなたのテナント以外のリソースに対するアクセスは許可されません。RealmJoin Portal では、すべてのリクエストで SSL/TLS のトランスポート層暗号化が必要であることに注意してください。あなたの認証情報は、通過するネットワーク上で露出することはありません。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmjoin.com/ja/dev-reference/realmjoin-api/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
