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

User registration using social network and Google #173

Open
indyjo opened this issue Jul 24, 2019 · 0 comments
Open

User registration using social network and Google #173

indyjo opened this issue Jul 24, 2019 · 0 comments
Labels
blender This issue involves the Blender add-on or worker script bounty 120 This issue is part of BitWrk's Bount Hunt program. See http://bitwrk.net/bounty client This issue involves the BitWrk client software enhancement Go This issue requires skills in the Go programming language help wanted HTML+JS This issue requires skill in HTML and JavaScript MVP server This issue involves the central BitWrk service

Comments

@indyjo
Copy link
Owner

indyjo commented Jul 24, 2019

Users should register in order to be eligible to redeem coupons. Therefore, associating a user with a social network ID should be mandatory.

  • The workflow should begin in two places:
    • (Latzer: In the Blender add-on: A web UI should pop up by press of a button in Blender.)
    • In the "Account" tab of the web UI.
  • In both cases, it would be preferrable to have the HTML delivered by the BitWrk service and not directly by the BitWrk client
    • This means that we can adapt the workflow after a BitWrk client version has been released.
    • This also means that we need to have a mechanism for setting an authorization cookie in the BitWrk client's web UI
    • During the interaction with the Bitwrk service (while registering with a social network), this authorization cookie enables the BitWrk service to make modifying transactions on behalf of the user
    • This authentication mechanism could be the base for future web-based workflows, such as managing coupons (not part of this task, just a thought)
  • User registration should at least support:
    • Google
    • LinkedIn
    • Facebook, Blender Cloud?

User registration is helpful in preventing people from creating a lot of fake accounts and redeeming coupons on those. Also, user registration could provide a means for recovering a lost private key (or better: serve as an alternative authentication method).

Q: How would the BitWrk client request an authorization token?
A: Suggested API: BiTWrk client would POST to /authtoken, provide signature(nonce|participantid)

Q: How would the authorization token become a cooke for domain bitwrk.appspot.com?
A: Suggested solution like in this StackOverflow answer:

  • Either embed an <img> in the BitWrk client's UI that has the auth token in its URL
  • or append the auth token to the workflow URL
    In both cases, query parameters would be used to communicate an authentication token. The BitWrk service would then validate the received token and, if validation was successful, set the corresponding cookie. Care must be taken not to leak the auth token in referer URLs.
@indyjo indyjo added enhancement client This issue involves the BitWrk client software server This issue involves the central BitWrk service blender This issue involves the Blender add-on or worker script labels Jul 24, 2019
@indyjo indyjo added this to the BitWrk reloaded MVP milestone Jul 24, 2019
@indyjo indyjo added the bounty 120 This issue is part of BitWrk's Bount Hunt program. See http://bitwrk.net/bounty label Aug 10, 2019
@indyjo indyjo added Go This issue requires skills in the Go programming language HTML+JS This issue requires skill in HTML and JavaScript help wanted labels Sep 29, 2019
@indyjo indyjo added the MVP label Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blender This issue involves the Blender add-on or worker script bounty 120 This issue is part of BitWrk's Bount Hunt program. See http://bitwrk.net/bounty client This issue involves the BitWrk client software enhancement Go This issue requires skills in the Go programming language help wanted HTML+JS This issue requires skill in HTML and JavaScript MVP server This issue involves the central BitWrk service
Projects
None yet
Development

No branches or pull requests

1 participant