Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor api user check auth0 #84
Refactor api user check auth0 #84
Changes from 12 commits
e3f5ea9
385e20b
07b78c2
1f60f1e
cd7a668
c469e2c
0bf0e18
36855ca
ca3e5ce
b7758a8
777e218
4bd181a
7685977
d94f0e5
7e54d28
6e2df15
efad45f
d989ff9
befa0c1
ce30456
382c977
790e3fe
ae7bc47
3954147
86581bb
feef7f5
6b504c2
7729deb
bb80a15
1b57450
6edd37d
ec7d369
b16534a
31aea84
1c00d7a
9072f1e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check appears to have been replaced with
RequestingUser#isAdmin
. Are we certain that theuser
is never null (i.e., are we avoiding NPEs whenuser.isAdmin()
is invoked)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine. All API calls (except to /auth) call
Auth0Connection.checkUser
which in-turn callsAuth0Connection.isValidUser
. This does a null pointer check on the requesting user object.