SE-1071 send user_logged_in signal from my_user_info

Description

A user's last logged in value isn't updated when the user logs in
through the oauth2 flow from the ios mobile app. Here we must send the
user_logged_in signal manually. It's implemented in the my_user_info
mobile rest api endpoint because adding it to where the oauth2 flow
happens is to complex (the platform doesn't know which user just logged in because it just delegates to the respective oauth2 libraries). It appears that the iOS app hits this endpoint once after a
successful login, so it should have the same effect.

CC @saeedbashir We would be interested to hear your opinion on this method or if you have suggestions for how better to implement this from the perspective of the iOS app login flow.

*JIRA tickets*:

*Dependencies*: None

*Sandbox URL*:

*Merge deadline*: None

*Testing instructions*:

1. login to the lms admin as a superuser and view the last logged in time for a normal user
2. log in to the ios mobile app as the above normal user
3. refresh the admin page and verify that the last logged in time has updated

*Author notes and concerns*:

*Reviewers*

  • [ ] @pomegranited

  • [ ] edX reviewer[s] TBD

*Settings*
```yaml
EDXAPP_FEATURES:
ENABLE_THIRD_PARTY_AUTH: true
ENABLE_MOBILE_REST_API: true
```

Status

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Labels

Contributor Name

Samuel Walladge

Repo

edx/edx-platform

PR Number

21,610

Customer

Course

None

OSCM Assignee

None

Github Latest Action

issue_comment: created

Github Latest Action by edX

No

Github PR Last Updated At

Sep 11, 2019, 8:11 AM

Github PR Last Updated By

edx-status-bot

Impacted Users (OSPR)

None

Impacted Environments (OSPR)

None

Feature Control (OSPR)

None

Priority

Unset