 #### Repository https://github.com/Volentix/venue-server #### Details Our current Python-based system uses the Django REST framework to authenticate users. I would like to instead use [AWS Cognito](https://aws.amazon.com/cognito/) to authenticate users. * A new parameter is passed to `POST /api/authenticate`: ``` { username: "thor", password: "default2018", authentication: "cognito" // new, optional parameter } ```  * If and only if `authentication=cognito`, then the server uses Cognito to authenticate the user. If authentication is successful, then a token is created as it is today on the Venue server. * Information about Cognito is configured as an environment variable passed into the system. I'm not sure what information is needed; it is probably best for the developer to create a Cognito User Pool for testing. The following items are requested, but not mandatory: * Parameters from Cognito which are necessary to signin (perhaps just a token) are returned as part of the `api/authenticate` call; this is probably just `cognito_token` or something similar. The Cognito token would then need to be saved with the Venue-generated token. * The `/api/logout` function logs out the Cognito user with the saved Cognito token as well as logging out the Venue user. Other links you might find useful: * Venue is running [on a development environment](https://venue-dev.volentix.io); feel free to play with this as you would like. The password for each user is `default2018`. * Information on the product as a whole is at https://github.com/venue; we also maintain [a Waffle board](https://waffle.io/Volentix/venue) * Current API documentation can be found at https://venue-dev.volentix.io/docs/ -- this documentation is also available if you [run the venue server](https://github.com/Volentix/venue-server#usage) and see them at http://localhost:3000/docs. * The [Venue client](https://github.com/Volentix/venue-client) can also be run locally to see how the API is used in practice. * I found [this Django-warrant](https://github.com/MetaMetricsInc/django-warrant) package, however the configuration as specified doesn't work because we are using the Django REST package. It might be of some use, but it is not a requirement to be used. Moving the users from the current system to the new system is NOT a part of this project; I have already written a Lambda function which copies users from Django to Cognito. For testing, you should create a user in your Cognito User Pool to confirm that Venue correctly authenticates there. When this authentication module is complete, the front end will be updated to create new users only in Cognito. Change of emails and change of passwords will also be performed on Cognito. So those parts of the code do not need to be updated either. As background, this is part of a migration strategy to move from the current Django-based monolithic project to a microservices-based repository, currently hosted on Lambda and deployed by serverless. #### Components * The Venue server [Authentication module](https://github.com/Volentix/venue-server/blob/master/venue/views.py) * Add any [requirements](https://github.com/Volentix/venue-server/blob/master/requirements.txt) * Add connection information need for the Cognito service in [settings](https://github.com/Volentix/venue-server/blob/master/volentix/settings.py) #### Deadline There is not a hard deadline for this, but I would like it completed the sooner the better. By November 9th would be nice. #### Communication You can contact me via email at shawn@volentixlabs.com or on Telegram @shawnlauzon. The Volentix community is at https://t.me/Volentix #### Github https://github.com/shawnlauzon 
author | shawnlauzon |
---|---|
permlink | integrate-the-volentix-django-rest-framework-backend-with-aws-cognito |
category | utopian-io |
json_metadata | {"tags":["utopian-io","task-development","volentix"],"users":["shawnlauzon"],"image":["https://cdn.steemitimages.com/DQmevnhXFH7BJXjKYm7GFDQVFaq1frGXd6z2SqgyHcqN1C9/venue%20-%20watermark-smaller.png","https://cdn.steemitimages.com/DQmS46Xuq6WnBvCe3oPVD8AcQWypNHFmbmkRCSZwb7YQYNR/image.png","https://cdn.steemitimages.com/DQmYaRtwgAqazemLB8eYsURvNpf2jmp7P9kgdY5XFbHvEBs/volentix-logo-navy.png"],"links":["https://github.com/Volentix/venue-server","https://aws.amazon.com/cognito/","https://venue-dev.volentix.io","https://github.com/venue;","https://waffle.io/Volentix/venue","https://venue-dev.volentix.io/docs/","https://github.com/Volentix/venue-server#usage","http://localhost:3000/docs","https://github.com/Volentix/venue-client","https://github.com/MetaMetricsInc/django-warrant","https://github.com/Volentix/venue-server/blob/master/venue/views.py","https://github.com/Volentix/venue-server/blob/master/requirements.txt","https://github.com/Volentix/venue-server/blob/master/volentix/settings.py","https://t.me/Volentix","https://github.com/shawnlauzon"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-11-01 16:57:48 |
last_update | 2018-11-01 16:57:48 |
depth | 0 |
children | 9 |
last_payout | 2018-11-08 16:57:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.170 HBD |
curator_payout_value | 1.627 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 4,104 |
author_reputation | 4,649,687,551,153 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,489,557 |
net_rshares | 5,978,312,515,452 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cmp2020 | 0 | 17,008,689,624 | 27% | ||
eforucom | 0 | 2,808,946,676 | 0.96% | ||
remlaps1 | 0 | 16,773,697,831 | 23% | ||
cub1 | 0 | 57,358,331,562 | 27% | ||
remlaps2 | 0 | 3,868,322,722 | 80% | ||
lisa.palmer | 0 | 1,638,702,618 | 23% | ||
cub2 | 0 | 3,797,666,381 | 80% | ||
astronomyizfun | 0 | 2,321,710,218 | 40% | ||
miniature-tiger | 0 | 80,528,500,003 | 50% | ||
helo | 0 | 31,469,632,407 | 100% | ||
osm0sis | 0 | 7,300,252,081 | 15% | ||
espoem | 0 | 3,409,336,837 | 1.99% | ||
utopian-io | 0 | 5,363,489,890,835 | 4.03% | ||
zapncrap | 0 | 18,657,607,891 | 50% | ||
amosbastian | 0 | 12,876,705,382 | 6.66% | ||
tdre | 0 | 14,089,790,684 | 100% | ||
curx | 0 | 19,208,804,723 | 50% | ||
jjay | 0 | 419,738,070 | 100% | ||
ryuna.siege | 0 | 208,797,365 | 100% | ||
fw206 | 0 | 44,426,435,775 | 100% | ||
coinsandchains | 0 | 2,937,167,537 | 7% | ||
rgkmb-unofficial | 0 | 3,262,074,602 | 80% | ||
rgkmb | 0 | 264,466,364 | 80% | ||
livingtoday | 0 | 558,729,364 | 100% | ||
cmp2020-lite | 0 | 153,272,741 | 40% | ||
remlaps-lite | 0 | 160,190,703 | 40% | ||
steem-ua | 0 | 264,836,885,433 | 2.2% | ||
curbot | 0 | 3,980,060,015 | 10% | ||
rsg000 | 0 | 498,109,008 | 100% | ||
soniaraza120 | 0 | 0 | 100% |
Thanks for the task request, @shawnlauzon! I'm not familiar with AWS Cognite myself, but I think the task should be clear for someone who is. Good luck with finding someone who can solve the task! --- Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/11/132311). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | amosbastian |
---|---|
permlink | re-shawnlauzon-integrate-the-volentix-django-rest-framework-backend-with-aws-cognito-20181101t175542543z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["shawnlauzon"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/11/132311","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-11-01 17:55:42 |
last_update | 2018-11-01 17:55:42 |
depth | 1 |
children | 2 |
last_payout | 2018-11-08 17:55:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.901 HBD |
curator_payout_value | 0.597 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 692 |
author_reputation | 174,473,586,900,705 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,492,192 |
net_rshares | 2,198,106,486,362 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
shawnlauzon | 0 | 564,228,723 | 100% | ||
mys | 0 | 4,365,283,850 | 3.44% | ||
pixelfan | 0 | 7,078,020,329 | 3% | ||
utopian-io | 0 | 2,102,659,171,464 | 1.46% | ||
emrebeyler | 0 | 15,584,567,111 | 1% | ||
steemtaker | 0 | 4,701,262,487 | 6% | ||
aydant | 0 | 4,670,708,888 | 50% | ||
organicgardener | 0 | 4,726,226,331 | 25% | ||
sttest2 | 0 | 0 | 1.55% | ||
reazuliqbal | 0 | 4,970,378,121 | 8% | ||
hakancelik | 0 | 6,422,036,477 | 10% | ||
iamstan | 0 | 9,866,852,161 | 50% | ||
mightypanda | 0 | 30,827,176,039 | 30% | ||
fastandcurious | 0 | 1,670,574,381 | 55% |
Thanks for evaluating it @amosbastian! I hope someone can help too :)
author | shawnlauzon |
---|---|
permlink | re-amosbastian-re-shawnlauzon-integrate-the-volentix-django-rest-framework-backend-with-aws-cognito-20181101t185945702z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["amosbastian"],"app":"steemit/0.1"} |
created | 2018-11-01 18:59:45 |
last_update | 2018-11-01 18:59:45 |
depth | 2 |
children | 0 |
last_payout | 2018-11-08 18:59:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 69 |
author_reputation | 4,649,687,551,153 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,495,156 |
net_rshares | 0 |
Thank you for your review, @amosbastian! Keep up the good work!
author | utopian-io |
---|---|
permlink | re-re-shawnlauzon-integrate-the-volentix-django-rest-framework-backend-with-aws-cognito-20181101t175542543z-20181104t222654z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.9"}" |
created | 2018-11-04 22:26:54 |
last_update | 2018-11-04 22:26:54 |
depth | 2 |
children | 0 |
last_payout | 2018-11-11 22:26:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 63 |
author_reputation | 152,955,367,999,756 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,685,339 |
net_rshares | 0 |
Congratulations @shawnlauzon! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@shawnlauzon/replies.png?202103011604"></td><td>You got more than 10 replies.<br>Your next target is to reach 50 replies.</td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@shawnlauzon) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Check out the last post from @hivebuzz:** <table><tr><td><a href="/hivebuzz/@hivebuzz/tour-update3"><img src="https://images.hive.blog/64x128/https://i.imgur.com/xecznXF.png"></a></td><td><a href="/hivebuzz/@hivebuzz/tour-update3">Hive Tour Update - Financial stages</a></td></tr></table>
author | hivebuzz |
---|---|
permlink | hivebuzz-notify-shawnlauzon-20210301t162332000z |
category | utopian-io |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2021-03-01 16:23:30 |
last_update | 2021-03-01 16:23:30 |
depth | 1 |
children | 0 |
last_payout | 2021-03-08 16:23:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 921 |
author_reputation | 370,746,862,940,233 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 102,129,351 |
net_rshares | 0 |
#### Hi @shawnlauzon! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
author | steem-ua |
---|---|
permlink | re-integrate-the-volentix-django-rest-framework-backend-with-aws-cognito-20181102t031756z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.9"}" |
created | 2018-11-02 03:17:57 |
last_update | 2018-11-02 03:17:57 |
depth | 1 |
children | 0 |
last_payout | 2018-11-09 03:17:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 290 |
author_reputation | 23,214,230,978,060 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,516,593 |
net_rshares | 0 |
Congratulations @shawnlauzon! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@shawnlauzon/voted.png?201811012046</td><td>You received more than 10 upvotes. Your next target is to reach 50 upvotes.</td></tr> </table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@shawnlauzon)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/i06trehc"><img src="https://steemitimages.com/64x128/https://ipfs.io/ipfs/QmU34ZrY632FFKQ1vbrkSM27VcnsjQdtXPynfMrpxDFJcF"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/i06trehc">Be ready for the next contest!</a></td></tr><tr><td><a href="https://steemit.com/halloween/@steemitboard/trick-or-treat-publish-your-scariest-halloweeen-story-and-win-a-new-badge"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/RUyB3u.png"></a></td><td><a href="https://steemit.com/halloween/@steemitboard/trick-or-treat-publish-your-scariest-halloweeen-story-and-win-a-new-badge">Trick or Treat - Publish your scariest halloween story and win a new badge</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-shawnlauzon-20181101t232632000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-11-01 23:26:33 |
last_update | 2018-11-01 23:26:33 |
depth | 1 |
children | 0 |
last_payout | 2018-11-08 23:26:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,579 |
author_reputation | 38,975,615,169,260 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,507,064 |
net_rshares | 0 |
Congratulations @shawnlauzon! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@shawnlauzon/payout.png?201811090251</td><td>You received more than 10 as payout for your posts. Your next target is to reach a total payout of 50</td></tr> </table> <sub>_[Click here to view your Board of Honor](https://steemitboard.com/@shawnlauzon)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest3-and-steemitboard-meet-the-steemians-contest"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmeLukvNFRsa7RURqsFpiLGEZZD49MiU52JtWmjS5S2wtW/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest3-and-steemitboard-meet-the-steemians-contest">SteemFest3 and SteemitBoard - Meet the Steemians Contest</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-shawnlauzon-20181109t034952000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-11-09 03:49:51 |
last_update | 2018-11-09 03:49:51 |
depth | 1 |
children | 0 |
last_payout | 2018-11-16 03:49:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,300 |
author_reputation | 38,975,615,169,260 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,953,316 |
net_rshares | 0 |
Congratulations @shawnlauzon! You received a personal award! <table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@shawnlauzon/birthday3.png</td><td>Happy Birthday! - You are on the Steem blockchain for 3 years!</td></tr></table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@shawnlauzon) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=shawnlauzon)_</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-shawnlauzon-20190911t180136000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-09-11 18:01:36 |
last_update | 2019-09-11 18:01:36 |
depth | 1 |
children | 0 |
last_payout | 2019-09-18 18:01:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 632 |
author_reputation | 38,975,615,169,260 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,482,191 |
net_rshares | 0 |
Hey, @shawnlauzon! **Thanks for contributing on Utopian**. Weβre already looking forward to your next task request! **Get higher incentives and support Utopian.io!** Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)). **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-integrate-the-volentix-django-rest-framework-backend-with-aws-cognito-20181103t011124z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.9"}" |
created | 2018-11-03 01:11:24 |
last_update | 2018-11-03 01:11:24 |
depth | 1 |
children | 0 |
last_payout | 2018-11-10 01:11:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 593 |
author_reputation | 152,955,367,999,756 |
root_title | "Integrate the Volentix Django REST framework backend with AWS Cognito" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 74,574,206 |
net_rshares | 0 |