Timeline for How can I verify users the first time they log in?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 1, 2018 at 4:46 | history | edited | imclean | CC BY-SA 3.0 |
Typo.
|
Jan 31, 2018 at 23:58 | history | edited | imclean | CC BY-SA 3.0 |
Logout request should be POST.
|
May 13, 2017 at 18:25 | history | bounty ended | CommunityBot | ||
May 12, 2017 at 7:55 | comment | added | Jonh | I found some problem. Table sessions: Drupal's session handlers read and write into the sessions table. Each record represents a user session, either anonymous or authenticated. Controller /rest/session/token always return value (any user anonymous or authenticated). So if you get token you need login with user first. When /user/login_status?_format=json return value 1. You can't login again to get token. You need logout. If can't logout. You can empty table sessions. | |
May 12, 2017 at 3:53 | comment | added | imclean | @Jonh It looks like Postman doesn't support saving REST responses so I recommend using Restlet client. See: Save responses inside history and collections | |
May 12, 2017 at 3:49 | comment | added | imclean | No cookies are set with REST unless your app sets them. Use the tokens instead. | |
May 12, 2017 at 3:47 | comment | added | imclean | Postman could be a separate question. But at first glance it doesn't automatically save the history of requests and responses so you need to manually click "Save" each time. I use Restlet Client. In Postman, make sure you only add the "Content-Type" header and for the body type click "raw". You need to "Save" each response so you can use the tokens again. Drupal sessions are managed the same way as normal. Client side you need to manually manage the tokens for the session. | |
May 12, 2017 at 2:14 | comment | added | Jonh | That's is good. But is difficult for the newbie. Can you take more info about login with postman. Table session stored session has login. And exited login. You can't login again, and can return any response. | |
May 12, 2017 at 2:02 | vote | accept | Jonh | ||
May 11, 2017 at 22:13 | history | edited | imclean | CC BY-SA 3.0 |
Add references to user's session for clarity.
|
May 11, 2017 at 3:58 | history | edited | imclean | CC BY-SA 3.0 |
Formatting json response.
|
May 8, 2017 at 22:59 | history | edited | imclean | CC BY-SA 3.0 |
format not required for /rest/session/token
|
May 8, 2017 at 2:34 | history | edited | imclean | CC BY-SA 3.0 |
Add status and token paths.
|
May 8, 2017 at 2:18 | history | answered | imclean | CC BY-SA 3.0 |