Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login as user #1254

Merged
merged 5 commits into from
Feb 14, 2020
Merged

Login as user #1254

merged 5 commits into from
Feb 14, 2020

Conversation

lyyder
Copy link
Contributor

@lyyder lyyder commented Feb 3, 2020

Adds two endpoints to the server that handle authorization code grant type login requests. Enables operators to log in as a user.

Takes the new isAnonymous attribute returned by sdk.authInfo to resolve if a user is logged in.

A banner notifying a user in case their access token has limited write access will be added in a distinct PR.

@lyyder lyyder force-pushed the login-as-user branch 4 times, most recently from bcaaeb0 to 8e21f27 Compare February 3, 2020 10:03
@lyyder lyyder force-pushed the login-as-user branch 7 times, most recently from cf61a51 to d550ecf Compare February 12, 2020 09:39
@lyyder lyyder requested review from OtterleyW and Gnito February 12, 2020 09:40
package.json Outdated Show resolved Hide resolved
server/index.js Show resolved Hide resolved
@lyyder lyyder temporarily deployed to sharetribe-starter-app February 12, 2020 11:20 Inactive
@lyyder lyyder temporarily deployed to sharetribe-starter-app February 12, 2020 11:33 Inactive
server/apiRouter.js Outdated Show resolved Hide resolved
server/apiRouter.js Outdated Show resolved Hide resolved
Add two endpoints to the server to enable logging in as a user using the
OAuth2 authorization_code grant type.
Rely on the updated return value of `sdk.authInfo`.
@lyyder lyyder force-pushed the login-as-user branch 2 times, most recently from 8641ad0 to eedcb40 Compare February 14, 2020 09:31
@lyyder lyyder merged commit 87a7993 into master Feb 14, 2020
@lyyder lyyder deleted the login-as-user branch February 14, 2020 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants