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

Fixes for todoist and oura #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hnykda
Copy link

@hnykda hnykda commented Nov 24, 2019

Hi,

thanks for the great work, here are some fixes for me to be able to run it today.

Copy link
Author

@hnykda hnykda left a comment

Choose a reason for hiding this comment

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

The blocks which I commented out could potentially display some sensitive data, so I rather hid them.

@@ -94,7 +94,8 @@
"\n",
"* Go to the Developer Section of the Oura Cloud (https://cloud.ouraring.com/oauth/developer).\n",
"* Go to “My Applications” and create a new application by clicking on “New Application”.\n",
"* Fill out the form fields with your data.\n",
"* Fill out the form fields with your data. You need to check `Allow client-side authentication (grant-type token)`\n",
Copy link
Author

Choose a reason for hiding this comment

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

Maybe only one of them is needed, not sure which one.

from uuid import uuid4
state = str(uuid4())
save_created_state(state)
Copy link
Author

Choose a reason for hiding this comment

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

this one is simply not defined anywhere -> doesn't work

@@ -26,10 +25,8 @@ def homepage():

def make_authorization_url():
# Generate a random string for the state parameter
# Save it for use later to prevent xsrf attacks
Copy link
Author

Choose a reason for hiding this comment

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

I think xsrf attacks for a thing which runs for a 30 seconds on localhost is pretty safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant