Skip to content

[ja] : typo fix #691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ja/identifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ ORM resolverを使用するには ``composer.json`` ファイルの中に ``cake
'resolver' => [
// name: \Some\Other\Custom\Resolver::class フルのクラス名です。
'className' => 'MyResolver',
// レゾルバのコンストラクタに追加のオプションを渡します
// リゾルバのコンストラクタに追加のオプションを渡します
'option' => 'value'
]
]);
Expand Down
12 changes: 6 additions & 6 deletions docs/ja/migration-from-the-authcomponent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
このプラグインは、 *本人確認* と *認証のみ* を行います。
認可のための別のプラグインがあるかもしれません。
- セッションの自動チェックはありません。
セッションから実際のユーザデータを取得するには、 ``SessionAuthenticator`` を使用する必要があります。
セッションから実際のユーザーデータを取得するには、 ``SessionAuthenticator`` を使用する必要があります。
設定したセッションキーにデータがあるかどうかをチェックして、それをIDオブジェクトに入れてくれます。
- ユーザのデータは古いAuthComponentでは利用できなくなりましたが
- ユーザーのデータは古いAuthComponentでは利用できなくなりましたが
request属性を使ってアクセスでき、
identityオブジェクトにカプセル化されています: ``$request->getAttribute('authentication')->getIdentity();`` 。
さらに, ``AuthenticationComponent`` の ``getIdentity()`` と ``getIdentityData()`` が使えます。
- 認証処理のロジックは、認証と本人確認に分かれています。
認証機能はリクエストから認証情報を抽出し、識別子は認証情報を検証して一致するユーザを見つけます
認証機能はリクエストから認証情報を抽出し、識別子は認証情報を検証して一致するユーザーを見つけます
- DigestAuthenticateの名前がHttpDigestAuthenticatorに変更しました。
- BasicAuthenticateの名前がHttpBasicAuthenticatorに変更しました。

Expand All @@ -40,7 +40,7 @@
例: (ORMテーブル, LDAP など) と識別されたユーザーデータを返します。

これにより、必要に応じて識別ロジックを変更したり、
複数のユーザデータソースを使用したりすることが容易になります
複数のユーザーデータソースを使用したりすることが容易になります

独自の識別子を実装したい場合は ``IdentifierInterface`` を実装しなければなりません。

Expand Down Expand Up @@ -170,7 +170,7 @@ AuthComponent の設定の移行
return $this->redirect($target);
}

// ユーザの送信と認証に失敗した場合にエラーを表示する
// ユーザーの送信と認証に失敗した場合にエラーを表示する
if ($this->request->is(['post'])) {
$this->Flash->error('ユーザー名またはパスワードが無効です');
}
Expand All @@ -181,7 +181,7 @@ AuthComponent の設定の移行

ミドルウェアを適用した後、``identity``リクエスト属性を使ってIDデータを利用することができます。
これは今使っている ``$this->Auth->user()`` の呼び出しを置き換えるものです。
現在のユーザが認証されていないか、提供された資格情報が無効な場合は、 ``identity`` が ``null`` になります。::
現在のユーザーが認証されていないか、提供された資格情報が無効な場合は、 ``identity`` が ``null`` になります。::

$user = $request->getAttribute('identity');

Expand Down