Skip to content

Commit 36e403c

Browse files
committed
Use polite expressions, Omit 'you'
1 parent 8c654a6 commit 36e403c

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

doc/guide/ko/authentication.md

+25-27
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
# 인증
33

44
<!--Users can be authenticated in two ways: over the websocket or over HTTP.-->
5-
사용자들은 두가지 방법으로 인증되어 질 수 있다: 웹소켓으로 또는 HTTP를 통해.
5+
인증은 웹소켓이나 HTTP으로 할수 있습니다.
66

77
<!--The first option is useful if you're authenticating against a backend database or other resource you control, the second if you're using a third-party service such as Facebook Connect.-->
8-
백-앤드 데이터베이스 또는 제어하는 다른 리소스에 인증하고 있다면첫번째 방법이 유용하고 Facebook Connect같은 그런 서드파티 서비스를 이용하고 있다면 두번째 방법이 유용하다.
8+
첫번째 방법은 직접 관리하시는 데이터베이스나 리소스에 인증하고 있을때 유용하고, 두번째 방법은 페이스북같은 외부 인증을 사용할때 유용합니다.
99

1010
<!--Either way, the goal is the same: to update `req.session.userId` with the user's unique ID.-->
11-
어느 경우라도, 목표는 같다: `req.session.userId`를 사용자의 유니크 ID로 변경하기
11+
어떤 방법이든 '`req.session.userId`에 사용자 고유의 ID를 넣고 싶다.'라는 목표는 같습니다.
1212

1313
<!---### Authenticating over websockets-->
1414
### 웹소켓을 통한 인증
1515

1616
<!--This is the best choice if you're authenticating against an internal database or LDAP server, etc.-->
17-
내부의 데이터베이스 또는 LDAP서버 등 에 인증하고 있다면 이것이(웹소켓이) 최고의 선택이다.
17+
내부의 데이터베이스 또는 LDAP서버 등 에 인증하고 있다면 이것이(웹소켓이) 최고의 선택일 거에요.
1818

1919
```javascript
2020
// server/rpc/app.js
@@ -45,30 +45,29 @@ exports.actions = function(req, res, ss){
4545
// lookup user in DB, LDAP, etc
4646
-->
4747
<!--Note: You could just set`req.session.userId` manually, but calling the `req.session.setUserId()` function saves the session and notifies SocketStream to immediately start sending events for this user (sent using `ss.publish.user()`) over the current websocket connection.-->
48-
Note: 당신이 `req.session.userId`을 그냥 수동적으로 바꿀 수 있다. 그러나 호출한 `req.session.setUserId()` 함수는 세션을 저장하고 SocketStream에게 즉시 (`ss.publish.user()`를 사용하여 전송)이 사용자에게 이벤트 전송을 시작을 알린다.
48+
주의: 당신이 `req.session.userId`을 그냥 수동으로 바꿀 수도 있지만, 그렇게 하기보단 `req.session.setUserId()`를 호출해 세션을 저장하고 현재의 웹소켓 연결을 사용하여 SocketStream에게 이 유저의(`ss.publish.user()`를 사용하여 전송) 이벤트 전송이 시작됬음을 알리는게 좋습니다.
4949

5050
<!---### Authenticating using HTTP-->
51-
### HTTP이용 인증
51+
### HTTP이용한 인증
5252

53-
<!--Since the same session object is also available over HTTP you may easily authenticate a user by updating `req.session.userId`-->
54-
whilst processing a HTTP request.
55-
같은 세션 객체는 HTTP를 통하여도 가능하기 때문에 HTTP Request를 처리하는 동안 `req.session.userId`을 변경하여 인증할 수 있다.
53+
<!--Since the same session object is also available over HTTP you may easily authenticate a user by updating `req.session.userId` whilst processing a HTTP request.-->
54+
같은 세션 객체는 HTTP를 통하여도 가능하기 때문에 HTTP Request를 처리하는 동안 `req.session.userId`을 변경하여 인증할 수 있습니다.
5655

5756
<!--Let's look at a very simple example by adding the following 'route' to `app.js`:-->
58-
다음에 나오는 'route'를 `app.js`에 추가한 매우 쉬운 예제를 보자:
57+
다음에 나오는 'route'를 `app.js`에 추가한 매우 쉬운 예제를 봅시다:
5958

6059
```javascript
6160
// app.js
6261
ss.http.router.on('/authenticateMe', function(req, res) {
63-
req.session.userId = 'john';
62+
req.session.userId = '나솔';
6463
req.session.save(function(err){
6564
res.serve('main');
6665
});
6766
});
6867
```
6968

7069
<!--Next, add an RPC action which sends the contents of `req.session.userId` over the websocket:-->
71-
다음으로 웹소켓을 통해 `req.session.userId`의 컨텐츠들를 전송하는 작업을 하는 RPC를 추가한다.
70+
다음으로 웹소켓을 통해 `req.session.userId`의 컨텐츠들를 전송하는 RPC를 추가합니다.
7271

7372
```javascript
7473
// server/rpc/app.js
@@ -80,7 +79,7 @@ exports.actions = function(req, res, ss){
8079
return {
8180

8281
getCurrentUser: function(){
83-
res('The current user is ' + req.session.userId);
82+
res('현재 사용자는 ' + req.session.userId + '님 입니다.');
8483
}
8584

8685
}
@@ -89,33 +88,32 @@ exports.actions = function(req, res, ss){
8988
<!---// tell SocketStream to load session data-->
9089

9190
<!--Now visit `http://localhost:3000/authenticateMe` then enter the following command in the browser's console:-->
92-
이제 `http://localhost:3000/authenticateMe` 방문하라 그리고 브라우저 콘솔에 다음 내용을 입력하라:
91+
이제 `http://localhost:3000/authenticateMe` 가서 브라우저 콘솔에 다음 명령을 실행해보세요:
9392

9493
ss.rpc('app.getCurrentUser')
9594

9695
<!--And you'll see the following output:-->
97-
그러면 당신은 다음과 같은 결과를 볼 것이다.:
98-
99-
The current user is john
96+
그러면 다음 결과가 출력 됩니다:
10097

98+
현재 사용자는 나솔님 입니다.
10199

102100
<!---### Using Everyauth for Facebook Connect, Twitter, Github etc-->
103101
### Facebook Connect, Twitter, Github 등의 위한 Everyauth 사용
104102

105103
<!--SocketStream integrates well with popular authentication libraries such as [Everyauth](https://github.com/bnoguchi/everyauth).-->
106-
SocketStream은 [Everyauth](https://github.com/bnoguchi/everyauth)같은 유명한 인증 라이브러리들과 잘 통합된다.
104+
SocketStream은 [Everyauth](https://github.com/bnoguchi/everyauth)같은 널리쓰이는 인증 라이브러리들과 잘 통합됩니다.
107105

108106
<!--Tip: Don't be tempted to follow the docs on the Everyauth website too closely - they are mainly geared at multi-page apps and/or specific to Express.-->
109-
팁: Everyauth 웹사이트의 문서를 너무 자세히 따르지 마라 - 그것들은 주로 멀티페이지 앱에 연관되거나/또는 Express를 명시하고 있다.
107+
팁: Everyauth 웹사이트의 문서를 너무 자세히 따르지 마세요 - 그것들은 주로 여러페이지를 가진 어플리케이션에 적합한 내용이거나 Express를 위한 겁니다.
110108

111109
<!--Here's an example of a full app which authenticates against Twitter's OAuth service.-->
112-
여기 트위터의 oAuth서비스에 대한 인증을 하는 전체 app의 예제가 있다.
110+
트위터의 oAuth서비스에 대한 인증을 하는 전체 app의 예제입니다.
113111

114112
<!--To get started, register your new app at https://dev.twitter.com/apps/new-->
115-
시작할때 https://dev.twitter.com/apps/new 에서 당신의 새 앱을 등록하라.
113+
시작하기전에 https://dev.twitter.com/apps/new 에서 당신의 새 앱을 등록하세요.
116114

117115
<!--When testing your app supply `http://127.0.0.1:3000` as the Callback URL. Change this to the real URL when your app goes into production.-->
118-
당신의 앱을 테스트 할때 콜백 URL로 `http://127.0.0.1:3000`제공된다. 당신을 앱을 제품으로 만들때 할때 이것을 실제 URL로 변경하라.
116+
당신의 앱을 테스트 할때 콜백 URL로 `http://127.0.0.1:3000`제공됩니다. 당신을 앱을 제품으로 만들때 할때 이것을 실제 URL로 변경해야 합니다.
119117

120118
```javascript
121119
// app.js
@@ -134,11 +132,11 @@ ss.http.router.on('/', function(req, res) {
134132
});
135133

136134
everyauth.twitter
137-
.consumerKey('YOUR CONSUMER ID HERE')
138-
.consumerSecret('YOUR CONSUMER SECRET HERE')
135+
.consumerKey('여기에 CONSUMER ID 를 입력')
136+
.consumerSecret('여기에 CONSUMER SECRET 를 입력')
139137
.findOrCreateUser( function (session, accessToken, accessTokenSecret, twitterUserMetadata) {
140138
var userName = twitterUserMetadata.screen_name;
141-
console.log('Twitter Username is', userName);
139+
console.log('트위터 유저이름: ', userName);
142140
session.userId = userName;
143141
session.save();
144142
return true;
@@ -153,9 +151,9 @@ server.listen(3000);
153151

154152
ss.start(server);
155153

156-
// 인증을 위해 http://local.host:3000/auth/twitter 방문
154+
// http://local.host:3000/auth/twitter 에서 인증해볼수 있습니다.
157155
```
158156
<!--// To authenticate visit http://local.host:3000/auth/twitter-->
159157

160158
<!--Many more details on this and other examples coming soon.-->
161-
이것에 대한 많고 더 상세함 과 다른 예제들이 곧 옵니다.
159+
인증에 대한 더 상세한 설명과 예제들이 곧 나올꺼에요.

0 commit comments

Comments
 (0)