Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

User Authentication #3

Open
sr229 opened this issue Dec 22, 2019 · 6 comments
Open

User Authentication #3

sr229 opened this issue Dec 22, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sr229
Copy link
Contributor

sr229 commented Dec 22, 2019

We have the option to use two of the following:

  • an dApps Auth using your Ethereum wallet as your credentials, preferrably MetaMask.

  • classic SSO by a third party.

This should allow us to implement permissions for #2.

@sr229 sr229 added the enhancement New feature or request label Dec 22, 2019
@sr229 sr229 added this to the Minimum Viable Product milestone Dec 22, 2019
@sr229 sr229 mentioned this issue Dec 22, 2019
@sr229 sr229 mentioned this issue Dec 22, 2019
@Ovyerus
Copy link
Contributor

Ovyerus commented Dec 22, 2019

I reckon we should use Reddit OAuth for third party logins, seeing as we'll be dealing with some stuff from them anyway.

@sr229
Copy link
Contributor Author

sr229 commented Dec 22, 2019

the way I see it we might also add integration from them as well if our URL got posted there

@Ovyerus
Copy link
Contributor

Ovyerus commented Dec 22, 2019

What do you mean?

@sr229
Copy link
Contributor Author

sr229 commented Dec 22, 2019

@Ovyerus Redditbooru automatically checks if certain link exists on Reddit, if it does then it provides some metadata but I don't think we should do that.

@sr229
Copy link
Contributor Author

sr229 commented Apr 26, 2020

Assigning @Ovyerus for this. We can use the OAuth spec for this so you can bother around by supporting Reddit first. You can do Discord as well if it fancies you.

@sr229
Copy link
Contributor Author

sr229 commented Apr 26, 2020

This would be our Login Flow:

  • User logs in via a supported OAuth provider (Reddit, Discord, etc.)
    • Generate JWT and check if user already exists via redditLink.
      - If we have a matching user via redditLink, then proceed with just Login, if not, redirect them to the checkpoint page where a reCaptcha page would validate them if its a robot. Once validated, perform a POST to /api/user/.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants