You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/guide/ko/authentication.md
+25-27
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,19 @@
2
2
# 인증
3
3
4
4
<!--Users can be authenticated in two ways: over the websocket or over HTTP.-->
5
-
사용자들은 두가지 방법으로 인증되어 질 수 있다: 웹소켓으로 또는 HTTP를 통해.
5
+
인증은 웹소켓이나 HTTP으로 할수 있습니다.
6
6
7
7
<!--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
+
첫번째 방법은 직접 관리하시는 데이터베이스나 리소스에 인증하고 있을때 유용하고, 두번째 방법은 페이스북같은 외부 인증을 사용할때 유용합니다.
9
9
10
10
<!--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를 넣고 싶다.'라는 목표는 같습니다.
12
12
13
13
<!---### Authenticating over websockets-->
14
14
### 웹소켓을 통한 인증
15
15
16
16
<!--This is the best choice if you're authenticating against an internal database or LDAP server, etc.-->
17
-
내부의 데이터베이스 또는 LDAP서버 등 에 인증하고 있다면 이것이(웹소켓이) 최고의 선택이다.
17
+
내부의 데이터베이스 또는 LDAP서버 등 에 인증하고 있다면 이것이(웹소켓이) 최고의 선택일 거에요.
<!--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()`를 사용하여 전송)이벤트 전송이 시작됬음을 알리는게 좋습니다.
49
49
50
50
<!---### Authenticating using HTTP-->
51
-
### HTTP이용 인증
51
+
### HTTP이용한 인증
52
52
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`을 변경하여 인증할 수 있습니다.
56
55
57
56
<!--Let's look at a very simple example by adding the following 'route' to `app.js`:-->
<!--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`가서 브라우저 콘솔에 다음 명령을 실행해보세요:
93
92
94
93
ss.rpc('app.getCurrentUser')
95
94
96
95
<!--And you'll see the following output:-->
97
-
그러면 당신은 다음과 같은 결과를 볼 것이다.:
98
-
99
-
The current user is john
96
+
그러면 다음 결과가 출력 됩니다:
100
97
98
+
현재 사용자는 나솔님 입니다.
101
99
102
100
<!---### Using Everyauth for Facebook Connect, Twitter, Github etc-->
103
101
### Facebook Connect, Twitter, Github 등의 위한 Everyauth 사용
104
102
105
103
<!--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)같은 널리쓰이는 인증 라이브러리들과 잘 통합됩니다.
107
105
108
106
<!--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를 위한 겁니다.
110
108
111
109
<!--Here's an example of a full app which authenticates against Twitter's OAuth service.-->
112
-
여기 트위터의 oAuth서비스에 대한 인증을 하는 전체 app의 예제가 있다.
110
+
트위터의 oAuth서비스에 대한 인증을 하는 전체 app의 예제입니다.
113
111
114
112
<!--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 에서 당신의 새 앱을 등록하세요.
116
114
117
115
<!--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로 변경해야 합니다.
0 commit comments