-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
9b92767
to
29e9258
Compare
.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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
8750d26
to
2f09505
Compare
29e9258
to
b47f6d4
Compare
What
/auth
User
db