Problem/Motivation

Logging in via the auth controller does not give users the same tokens as the Drupal login form

Steps to reproduce

Setup: MySQL [drupal8]> delete from users_data where uid = 14399 and module = 'cognito' limit 3;

Login via the controller and no tokens will be created:

MySQL [drupal8]> select uid, module, name from users_data where uid = '14399';
+-------+---------------------+------------------------+
| uid   | module              | name                   |
+-------+---------------------+------------------------+
| 14399 | unearthed_innovator | cognito_email_verified |
+-------+---------------------+------------------------+
1 row in set (0.00 sec)

Logging in via the integrated form:

MySQL [drupal8]> select uid, module, name from users_data where uid = '14399';
+-------+---------------------+------------------------+
| uid   | module              | name                   |
+-------+---------------------+------------------------+
| 14399 | cognito             | AccessToken            |
| 14399 | cognito             | IdToken                |
| 14399 | cognito             | RefreshToken           |
| 14399 | unearthed_innovator | cognito_email_verified |
+-------+---------------------+------------------------+
4 rows in set (0.00 sec)

Proposed resolution

Set the same tokens in the auth controller.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3233407-2.patch1.17 KBsam152

Comments

Sam152 created an issue. See original summary.

sam152’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB
benjy’s picture

Status: Needs review » Reviewed & tested by the community

  • Sam152 committed 553593f on 2.x
    Issue #3233407 by Sam152: Logging in via the auth controller does not...
sam152’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.