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
{{ message }}
Repository navigation
Commit b8ea11f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: _translations/po/es/guide_security_authentication.md.po
+62-54Lines changed: 62 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version: PACKAGE VERSION\n"
9
-
"POT-Creation-Date: 2025-09-11 10:15+0500\n"
9
+
"POT-Creation-Date: 2026-01-11 19:34+0000\n"
10
10
"PO-Revision-Date: 2025-09-04 11:19+0500\n"
11
11
"Last-Translator: Automatically generated\n"
12
12
"Language-Team: none\n"
@@ -17,55 +17,66 @@ msgstr ""
17
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
19
19
#. type: Title #
20
-
#: ../../guide/en/security/authentication.md
20
+
#: ../src/guide/security/authentication.md
21
21
#, no-wrap
22
22
msgid"Authentication"
23
23
msgstr""
24
24
25
25
#. type: Plain text
26
-
#: ../../guide/en/security/authentication.md
26
+
#: ../src/guide/security/authentication.md
27
27
msgid"Authentication is the process of verifying the identity of a user. It usually uses an identifier (for example, a username or an email address) and a secret token (such as a password or an access token) to judge if the user is the one whom he claims as. Authentication is the basis of the login feature."
28
28
msgstr""
29
29
30
30
#. type: Plain text
31
-
#: ../../guide/en/security/authentication.md
31
+
#: ../src/guide/security/authentication.md
32
32
msgid"Yii provides an authentication framework which wires up various components to support login. To use this framework, you mainly need to do the following work:"
33
33
msgstr""
34
34
35
35
#. type: Bullet: '* '
36
-
#: ../../guide/en/security/authentication.md
37
-
msgid"Configure the `Yiisoft\\Yii\\Web\\User\\User` service;"
36
+
#: ../src/guide/security/authentication.md
37
+
msgid"Configure the `Yiisoft\\User\\CurrentUser` service;"
38
38
msgstr""
39
39
40
40
#. type: Bullet: '* '
41
-
#: ../../guide/en/security/authentication.md
41
+
#: ../src/guide/security/authentication.md
42
42
msgid"Create a class implementing the `\\Yiisoft\\Auth\\IdentityInterface` interface;"
43
43
msgstr""
44
44
45
45
#. type: Bullet: '* '
46
-
#: ../../guide/en/security/authentication.md
46
+
#: ../src/guide/security/authentication.md
47
47
msgid"Create a class implementing the `\\Yiisoft\\Auth\\IdentityRepositoryInterface` interface;"
48
48
msgstr""
49
49
50
+
#. type: Plain text
51
+
#: ../src/guide/security/authentication.md
52
+
msgid"To use the `Yiisoft\\User\\CurrentUser` service, install [yiisoft/user](https://github.com/yiisoft/user) package:"
msgid"The `Yiisoft\\Yii\\Web\\User\\User` application service manages the user authentication status. It depends on `Yiisoft\\Auth\\IdentityRepositoryInterface` that should return an instance of `\\Yiisoft\\Auth\\IdentityInterface` which has the actual authentication logic."
68
+
#: ../src/guide/security/authentication.md
69
+
msgid"The `Yiisoft\\User\\CurrentUser` application service manages the user authentication status. It depends on `Yiisoft\\Auth\\IdentityRepositoryInterface` that should return an instance of `\\Yiisoft\\Auth\\IdentityInterface` which has the actual authentication logic."
msgid"The identity repository class must implement the `\\Yiisoft\\Auth\\IdentityRepositoryInterface` which has the following methods:"
144
152
msgstr""
145
153
146
154
#. type: Bullet: '* '
147
-
#: ../../guide/en/security/authentication.md
155
+
#: ../src/guide/security/authentication.md
148
156
msgid"`findIdentity(string $id): ?IdentityInterface`: it looks for an instance of the identity class using the specified ID. This method is used when you need to keep the login status via session."
149
157
msgstr""
150
158
151
159
#. type: Bullet: '* '
152
-
#: ../../guide/en/security/authentication.md
160
+
#: ../src/guide/security/authentication.md
153
161
msgid"`findIdentityByToken(string $token, string $type): ?IdentityInterface`: it looks for an instance of the identity class using the specified access token. This method is used when you need to authenticate a user by a single secret token (for example, in a stateless REST API)."
154
162
msgstr""
155
163
156
164
#. type: Plain text
157
-
#: ../../guide/en/security/authentication.md
165
+
#: ../src/guide/security/authentication.md
158
166
msgid"A dummy implementation may look like the following:"
msgid"You can use `\\Yiisoft\\User\\User` service to get current user identity. As any service, it could be auto-wired in either action handler constructor or method:"
223
+
#: ../src/guide/security/authentication.md
224
+
msgid"You can use `\\Yiisoft\\User\\CurrentUser` service to get current user identity. As any service, it could be auto-wired in either action handler constructor or method:"
msgid"The user service raises a few events during the login and logout processes."
287
295
msgstr""
288
296
289
297
#. type: Bullet: '* '
290
-
#: ../../guide/en/security/authentication.md
298
+
#: ../src/guide/security/authentication.md
291
299
msgid"`\\Yiisoft\\User\\Event\\BeforeLogin`: raised at the beginning of `login()`. If the event handler calls `invalidate()` on an event object, the login process will be cancelled."
292
300
msgstr""
293
301
294
302
#. type: Bullet: '* '
295
-
#: ../../guide/en/security/authentication.md
303
+
#: ../src/guide/security/authentication.md
296
304
msgid"`\\Yiisoft\\User\\Event\\AfterLogin`: raised after a successful login."
297
305
msgstr""
298
306
299
307
#. type: Bullet: '* '
300
-
#: ../../guide/en/security/authentication.md
308
+
#: ../src/guide/security/authentication.md
301
309
msgid"`\\Yiisoft\\User\\Event\\BeforeLogout`: raised at the beginning of `logout()`. If the event handler calls `invalidate()` on an event object, the logout process will be cancelled."
302
310
msgstr""
303
311
304
312
#. type: Bullet: '* '
305
-
#: ../../guide/en/security/authentication.md
313
+
#: ../src/guide/security/authentication.md
306
314
msgid"`\\Yiisoft\\User\\Event\\AfterLogout`: raised after a successful logout."
307
315
msgstr""
308
316
309
317
#. type: Plain text
310
-
#: ../../guide/en/security/authentication.md
318
+
#: ../src/guide/security/authentication.md
311
319
msgid"You may respond to these events to implement features such as login audit, online user statistics. For example, in the handler for `\\Yiisoft\\User\\Event\\AfterLogin`, you may record the login time and IP address in the `user` database table."
0 commit comments