elimu-ai / crowdsource

✍🏽 Android application which enables the crowd to upload and peer review educational content and ML datasets
https://play.google.com/store/apps/details?id=ai.elimu.crowdsource
MIT License
1 stars 1 forks source link

Add a "Sign in with Web3" option #37

Open nya-elimu opened 2 years ago

nya-elimu commented 2 years ago

Implement Web3 sign-on functionality similar to what has already been implemented for the webapp: https://eng.elimu.ai/sign-on

device-2020-12-16-185349

Corresponding REST API endpoint for signing on with Google in the Android app: https://github.com/elimu-ai/webapp/blob/main/src/main/java/ai/elimu/rest/v2/crowdsource/ContributorsRestController.java

Corresponding controller in the webapp for signing on with Web3 via a browser: https://github.com/elimu-ai/webapp/blob/main/src/main/java/ai/elimu/web/SignOnControllerWeb3.java


Depends on https://github.com/elimu-ai/webapp/issues/1544

nya-elimu commented 2 years ago

@hhio618 Note that the ContributorsRestController currently only supports signing in with Google. So it expects providerIdGoogle to be included in the request body.

Therefore, we should create a separate REST controller class for signing in with Web3. I'll handle that in a separate GitHub issue: https://github.com/elimu-ai/webapp/issues/1544

nya-elimu commented 2 years ago

@hhio618 In the Delta app, you'll see that they launch the MetaMask app (in a separate Android Activity) for fetching an Ethereum address:

1650264861897 1650264895555

Do you think we could do something similar?

hhio618 commented 2 years ago

@nya-elimuai Sure, we can do this too!