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
Comments
Comment #2
sam152 commentedComment #3
benjy commentedComment #5
sam152 commented