File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,3 +21,17 @@ bin/cake server -p 8765
2121```
2222
2323Then visit ` http://localhost:8765 ` to see the welcome page.
24+
25+ ## Crate a user & token
26+
27+ #### user
28+
29+ ``` bash
30+ bin/cake users add_superadmin -e email@email.com -p password
31+ ```
32+
33+ #### token
34+
35+ ``` bash
36+ bin/cake tu_token superadmin
37+ ```
Original file line number Diff line number Diff line change 138138 'skipTwoFactorVerify ' => true ,
139139 'sessionKey ' => 'Auth ' ,
140140 ],
141+ 'JWT ' => [
142+ 'className ' => 'Authentication.Jwt ' ,
143+ 'returnPayload ' => false
144+ ],
141145 'Form ' => [
142146 'className ' => 'CakeDC/Auth.Form ' ,
143147 'fields ' => [
169173 'className ' => 'CakeDC/Users.Social ' ,
170174 'authFinder ' => false
171175 ],
172- 'Token ' => [
173- 'className ' => 'Authentication.Token ' ,
174- 'tokenField ' => 'api_token ' ,
175- 'resolver ' => [
176- 'className ' => 'Authentication.Orm ' ,
177- 'finder ' => 'active '
178- ],
179- ]
176+ 'JWT ' => [
177+ 'className ' => 'Authentication.JwtSubject '
178+ ],
180179 ],
181180 "Authorization " => [
182181 'enable ' => true ,
You can’t perform that action at this time.
0 commit comments