This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
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.
Modifies accounts method to try and handle several users.
I couldn't connect how OAuth interacts with Accounts completely to avoid modifying base accounts method, which I suspect OAuth won't understand- as I haven't tried this at all. I don't know how to make packages or understand OAuth, so I decided to let you see this first before trying to debug this.
I removed Accounts.oauth.registerService(...), as I suppose that it is intended to provide indexes on id field. The id field changed to char id, since I provide list of char name and ids in a separate array to let user to index query by char id, and there's upper field size limit with indexes to which end I opted for more convenient/shorter field name (although multikey indexes may behave differently in this regard).
I'm not eager to understand OAuth to implement character owner change detection in refresh token helper (as to avoid providing access to original owner), that SSO doesn't enforce: https://www.reddit.com/r/Eve/comments/5ymo4l/psa_if_youve_purchased_a_character_clear_your/#bottom-comments.
Approximate accounts logic that I undug, and important variables that appear to interface with meteor from AOuth. If you'd like to consider how to implement this logic elsewhere.