Skip to content

fix: Original object not retrieved when user logs in with third party auth #7742

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

Open
wants to merge 52 commits into
base: alpha
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
0512867
Update ParseUser.spec.js
Meglali20 Dec 16, 2021
47b1a6a
retrieves original object when user logs in with third party auth
Meglali20 Dec 20, 2021
c5e58b5
removed unnecessary code
Meglali20 Dec 23, 2021
10055d7
Merge branch 'alpha' into aftersave-auth-user
mtrezza Jan 27, 2022
9ef1968
ci: fix node engine check (#7891)
mtrezza Mar 25, 2022
f63fb2b
fix: return correct response when revert is used in beforeSave (#7839)
dblythy Mar 26, 2022
b3199d7
chore(release): 5.2.1-alpha.1 [skip ci]
semantic-release-bot Mar 26, 2022
48bd512
perf: reduce database operations when using the constant parameter in…
dblythy Mar 26, 2022
e0cca58
chore(release): 5.2.1-alpha.2 [skip ci]
semantic-release-bot Mar 26, 2022
90155cf
feat: add MongoDB 5.1 compatibility (#7682)
github-actions[bot] Mar 27, 2022
499cead
chore(release): 5.3.0-alpha.1 [skip ci]
semantic-release-bot Mar 27, 2022
ef56e98
fix: security upgrade parse push adapter from 4.1.0 to 4.1.2 (#7893)
mtrezza Mar 27, 2022
119dbe0
chore(release): 5.3.0-alpha.2 [skip ci]
semantic-release-bot Mar 27, 2022
6b4b358
feat: add MongoDB 5.2 support (#7894)
mtrezza Mar 27, 2022
75eca2d
chore(release): 5.3.0-alpha.3 [skip ci]
semantic-release-bot Mar 27, 2022
132a3e0
refactor: upgrade mongodb from 4.3.1 to 4.4.1 (#7906)
snyk-bot Apr 3, 2022
d74b6a3
ci: bump environment (#7907)
github-actions[bot] Apr 3, 2022
2b0957c
refactor: add missing schema definitions (#7917)
Moumouls Apr 3, 2022
a72b384
fix: custom database options are not passed to MongoDB GridFS (#7911)
dblythy Apr 4, 2022
0b929db
chore(release): 5.3.0-alpha.4 [skip ci]
semantic-release-bot Apr 4, 2022
8ca80c9
Merge branch 'parse-community:alpha' into aftersave-auth-user
Meglali20 Apr 5, 2022
a50c62c
retrieves original object when user logs in with third party auth
Meglali20 Apr 7, 2022
ef3680a
refactor: upgrade @apollo/client from 3.5.8 to 3.5.9 (#7921)
snyk-bot Apr 9, 2022
6b68593
fix: security upgrade moment from 2.29.1 to 2.29.2 (#7931)
dependabot[bot] Apr 9, 2022
e88fb72
chore(release): 5.3.0-alpha.5 [skip ci]
semantic-release-bot Apr 9, 2022
562e2a7
Merge branch 'alpha' into aftersave-auth-user
mtrezza Apr 10, 2022
b7a1d76
fix: peer dependency mismatch for GraphQL dependencies (#7934)
marvinroger Apr 11, 2022
34b8110
chore(release): 5.3.0-alpha.6 [skip ci]
semantic-release-bot Apr 11, 2022
43ad5b3
refactor: upgrade @graphql-tools/links from 8.2.2 to 8.2.4 (#7932)
snyk-bot Apr 11, 2022
c106ba0
Merge branch 'alpha' into aftersave-auth-user
mtrezza Apr 11, 2022
f8fc76b
_logInWith to logInWith
Meglali20 Apr 13, 2022
d4024e3
move expect to outside afterSave
Meglali20 Apr 13, 2022
b45d44e
refactor: upgrade @graphql-tools/links from 8.2.4 to 8.2.6 (#7935)
snyk-bot Apr 15, 2022
8b91961
refactor: upgrade @graphql-tools/links from 8.2.6 to 8.2.7 (#7941)
dplewis Apr 17, 2022
122afcf
refactor: upgrade body-parser from 1.19.1 to 1.19.2 (#7944)
dplewis Apr 20, 2022
8868628
refactor: upgrade @graphql-tools/links from 8.2.7 to 8.2.8 (#7945)
dplewis Apr 22, 2022
20fc4e2
fix: security upgrade @parse/fs-files-adapter from 1.2.1 to 1.2.2 (#7…
snyk-bot Apr 25, 2022
8cf0b5e
chore(release): 5.3.0-alpha.7 [skip ci]
semantic-release-bot Apr 25, 2022
79c4b47
Simplify
Meglali20 Apr 25, 2022
c804426
Simplify
Meglali20 Apr 25, 2022
3bd25bd
Simplify
Meglali20 Apr 25, 2022
9aaebf6
Merge branch 'alpha' into aftersave-auth-user
mtrezza Apr 25, 2022
88f7e85
Merge branch 'alpha' into aftersave-auth-user
Meglali20 Jun 10, 2022
c7e7411
Update spec/CloudCode.spec.js
mtrezza Jun 10, 2022
23ec7bb
Update README.md
mtrezza Jun 10, 2022
f558621
Update src/RestWrite.js
mtrezza Jun 10, 2022
a4b01a5
Update changelogs/CHANGELOG_alpha.md
mtrezza Jun 10, 2022
76708dc
Update package-lock.json
Meglali20 Jun 10, 2022
b779cfc
Revert "Update package-lock.json"
Meglali20 Jun 10, 2022
fe1cd5a
Update package-lock.json
Meglali20 Jun 10, 2022
05f669f
Merge branch 'alpha' into aftersave-auth-user
Meglali20 Jul 21, 2022
05df34a
Merge branch 'alpha' into aftersave-auth-user
mtrezza Jul 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions spec/ParseUser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ describe('allowExpiredAuthDataToken option', () => {
});

describe('Parse.User testing', () => {
it('retrieves original object when user logs in with third party auth', async () => {
let original;
let user;
Parse.Cloud.afterSave(Parse.User, async request => {
original = request.original;
user = request.object;
});

const provider = getMockFacebookProvider();
Parse.User._registerAuthenticationProvider(provider);
await Parse.User.logInWith('facebook');
await Parse.User.logOut();
await Parse.User.logInWith('facebook');
expect(original).toBeDefined();
expect(user.get('authData')).not.toBeUndefined();
});

it('user sign up class method', async done => {
const user = await Parse.User.signUp('asdf', 'zxcv');
ok(user.getSessionToken());
Expand Down