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

feat: authentication workflow and store user token #22

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Nov 12, 2023

What

@raphodn raphodn self-assigned this Nov 12, 2023
@raphodn raphodn linked an issue Nov 12, 2023 that may be closed by this pull request
@raphodn raphodn force-pushed the raphodn/setup-authentication-workflow branch from 9b92767 to 29e9258 Compare November 13, 2023 16:44
.env.example Outdated
@@ -6,6 +6,7 @@ COMPOSE_PATH_SEPARATOR=;
COMPOSE_FILE=docker-compose.yml;docker/dev.yml

API_PORT=127.0.0.1:8000
OAUTH2_SERVER_URL=https://world.openfoodfacts.org/cgi/auth.pl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will deploy it in staging as well (https://world.openfoodfacts.net), so the URL need not to be hardcoded. You can use openfoodfacts SDK URLBuilder (https://github.com/openfoodfacts/openfoodfacts-python/blob/develop/openfoodfacts/utils.py#L23) to build OFF URLs this easily.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's in the .env then it's not hardcoded, right ? 😅
I'm not sure how to do this so I'll do it in a seperate PR :)

app/api.py Outdated Show resolved Hide resolved
@raphodn raphodn force-pushed the raphodn/setup-user-table branch 2 times, most recently from 8750d26 to 2f09505 Compare November 15, 2023 12:11
Base automatically changed from raphodn/setup-user-table to main November 15, 2023 12:19
@raphodn raphodn force-pushed the raphodn/setup-authentication-workflow branch from 29e9258 to b47f6d4 Compare November 15, 2023 12:29
@raphodn raphodn merged commit 81bab91 into main Nov 15, 2023
4 checks passed
@raphodn raphodn deleted the raphodn/setup-authentication-workflow branch November 15, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add authentication
3 participants