Skip to content

Commit

Permalink
update sequence image
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmshelly committed May 17, 2017
1 parent cccae04 commit c0f15e2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
![Peer Authentication Sequence](imgs/sequence_jp.png)

1. クライアントのpeerIdとセッショントークン、またはパスワードを自前の認証サーバに送信する
2. peerIdとセッショントークンが正しいか確認する
2. ユーザ側の認証基盤でセッショントークンやパスワードにて認証を行う
3. [authtoken](#authtoken)で定義された方法でauthTokenを生成する
4. (authToken、timestamp、ttlが含まれてる)credentialオブジェクトをクライアントに返信する
5. [例:JavaScriptとjQueryを利用したリクエスト](#例javascriptとjqueryを利用したリクエスト)のように `new Peer()`のオプション引数に認証サーバから取得したcredentialを渡してSkyWayのサーバに接続する。
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository contains samples that show how to calculate the credentials for
![Peer Authentication Sequence](imgs/sequence_en.png)

1. Send the client's peerId and session token or password to your Authentication server
2. Authenticate the peerId and session token
2. Authenticate the peerId and session token using your Authentication server
3. Create an authToken following the directions in [authtoken](#authtoken)
4. Send the credential object, (authToken, timestamp and token ttl,) back to the client
5. Connect to the SkyWay Server as normal using `new Peer()`, passing the credential as shown in [Example using JavaScript with jQuery](#example-using-javascript-with-jquery)
Expand Down
Binary file modified imgs/sequence_en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified imgs/sequence_jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0f15e2

Please sign in to comment.