Skip to content

Commit 800a940

Browse files
authored
Merge pull request #20 from yuzneri/typo-passport
Fix typo passport.md
2 parents cda3bc2 + f1445b0 commit 800a940

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

translation-ja/passport.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Passportが定義するルートをカスタマイズしたい場合もあるで
233233
'namespace' => '\Laravel\Passport\Http\Controllers',
234234
], function () {
235235
// Passportのルート…
236-
});CheckClientCredentials
236+
});
237237

238238
<a name="issuing-access-tokens"></a>
239239
## アクセストークンの発行
@@ -280,7 +280,7 @@ JSON APIは`web`と`auth`ミドルウェアにより保護されています。
280280
axios.get('/oauth/clients')
281281
.then(response => {
282282
console.log(response.data);
283-
});CheckClientCredentials
283+
});
284284
```
285285

286286
<a name="post-oauthclients"></a>
@@ -302,7 +302,7 @@ axios.post('/oauth/clients', data)
302302
})
303303
.catch (response => {
304304
// レスポンスのエラーをリストする処理…
305-
});CheckClientCredentials
305+
});
306306
```
307307

308308
<a name="put-oauthclientsclient-id"></a>
@@ -322,7 +322,7 @@ axios.put('/oauth/clients/' + clientId, data)
322322
})
323323
.catch (response => {
324324
// レスポンスのエラーをリストする処理…
325-
});CheckClientCredentials
325+
});
326326
```
327327

328328
<a name="delete-oauthclientsclient-id"></a>
@@ -334,7 +334,7 @@ axios.put('/oauth/clients/' + clientId, data)
334334
axios.delete('/oauth/clients/' + clientId)
335335
.then(response => {
336336
// ...
337-
});CheckClientCredentials
337+
});
338338
```
339339

340340
<a name="requesting-tokens"></a>
@@ -361,11 +361,11 @@ axios.delete('/oauth/clients/' + clientId)
361361
]);
362362

363363
return redirect('http://passport-app.test/oauth/authorize?'.$query);
364-
});CheckClientCredentials
364+
});
365365

366366
`prompt`パラメータは、Passportアプリケーションの認証動作を指定するために使用します。
367367

368-
`prompt`の値が`none`の場合、ユーザーがPassportアプリケーションで認証されていないとき、Passportは認証エラーを常時スローします。値が`consent`の場合、すべてのスコープが事前に利用者側アプリケーションへ許可されていても、Passportは常に承認承認スクリーンを表示します。値が`login`である場合、Passportアプリケーションは、ユーザーが既にセッションを持っていても、アプリケーションへ再ログインするように常に促します。
368+
`prompt`の値が`none`の場合、ユーザーがPassportアプリケーションで認証されていないとき、Passportは認証エラーを常時スローします。値が`consent`の場合、すべてのスコープが事前に利用者側アプリケーションへ許可されていても、Passportは常に承認スクリーンを表示します。値が`login`である場合、Passportアプリケーションは、ユーザーが既にセッションを持っていても、アプリケーションへ再ログインするように常に促します。
369369

370370
`prompt`値を指定しない場合、要求されたスコープに対する消費者側アプリケーションへのアクセスをそのユーザーへ以前に許可していない場合のみ、認可のためのプロンプトを表示します。
371371

@@ -428,7 +428,7 @@ php artisan vendor:publish --tag=passport-views
428428
]);
429429

430430
return $response->json();
431-
});CheckClientCredentials
431+
});
432432

433433
この`/oauth/token`ルートは、`access_token``refresh_token``expires_in`属性を含むJSONレスポンスを返します。`expires_in`属性は、アクセストークンが無効になるまでの秒数を含んでいます。
434434

@@ -449,7 +449,7 @@ Passportには、承認済みアクセストークンを管理するためのJSO
449449
axios.get('/oauth/tokens')
450450
.then(response => {
451451
console.log(response.data);
452-
});CheckClientCredentials
452+
});
453453
```
454454

455455
<a name="delete-oauthtokenstoken-id"></a>
@@ -583,7 +583,7 @@ php artisan passport:client --public
583583
]);
584584

585585
return redirect('http://passport-app.test/oauth/authorize?'.$query);
586-
});CheckClientCredentials
586+
});
587587

588588
<a name="code-grant-pkce-converting-authorization-codes-to-access-tokens"></a>
589589
#### 許可コードからアクセストークンへの変換
@@ -614,7 +614,7 @@ stateパラメータが一致したら、要求側はアクセストークンを
614614
]);
615615

616616
return $response->json();
617-
});CheckClientCredentials
617+
});
618618

619619
<a name="password-grant-tokens"></a>
620620
## パスワードグラントのトークン
@@ -771,7 +771,7 @@ php artisan passport:client --password
771771
]);
772772

773773
return redirect('http://passport-app.test/oauth/authorize?'.$query);
774-
});CheckClientCredentials
774+
});
775775

776776
> [!NOTE]
777777
> `/oauth/authorize`ルートは、すでにPassportが定義づけていることを覚えておいてください。このルートを自分で定義する必要はありません。
@@ -880,7 +880,7 @@ JSON APIは`web`と`auth`ミドルウェアにより保護されています。
880880
axios.get('/oauth/scopes')
881881
.then(response => {
882882
console.log(response.data);
883-
});CheckClientCredentials
883+
});
884884
```
885885

886886
<a name="get-oauthpersonal-access-tokens"></a>
@@ -892,7 +892,7 @@ axios.get('/oauth/scopes')
892892
axios.get('/oauth/personal-access-tokens')
893893
.then(response => {
894894
console.log(response.data);
895-
});CheckClientCredentials
895+
});
896896
```
897897

898898
<a name="post-oauthpersonal-access-tokens"></a>
@@ -912,7 +912,7 @@ axios.post('/oauth/personal-access-tokens', data)
912912
})
913913
.catch (response => {
914914
// レスポンスのエラーをリストする処理…
915-
});CheckClientCredentials
915+
});
916916
```
917917

918918
<a name="delete-oauthpersonal-access-tokenstoken-id"></a>
@@ -1035,7 +1035,7 @@ APIのスコープは、アプリケーションの`App\Providers\AppServiceProv
10351035
]);
10361036

10371037
return redirect('http://passport-app.test/oauth/authorize?'.$query);
1038-
});CheckClientCredentials
1038+
});
10391039

10401040
<a name="when-issuing-personal-access-tokens"></a>
10411041
#### パーソナルアクセストークン発行時
@@ -1088,7 +1088,7 @@ Passportは2つのミドルウェアを用意しており、受信リクエス
10881088
if ($request->user()->tokenCan('place-orders')) {
10891089
// ...
10901090
}
1091-
});CheckClientCredentials
1091+
});
10921092

10931093
<a name="additional-scope-methods"></a>
10941094
#### その他のスコープメソッド

0 commit comments

Comments
 (0)