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

xDripAPS does not support token based authentication of oref0 0.5.x #2

Open
dramageek opened this issue Jul 31, 2017 · 2 comments
Open

Comments

@dramageek
Copy link

I believe that using token based auth for your nightscout site changes the API_SECRET variable, and breaks this tool.

@PieterGit
Copy link

I think whats needs to be done is change the logic of
https://github.com/colinlennon/xDripAPS/blob/master/xDripAPS.py#L104-L117
If token based authentication is used, then the token is supplied at the end of the posting url,
http://URL/endpoint?token=device-hash

So instead of checking for API_SECRET, you need to parse the token out of the calling URL and compare token=device-hash to the environment variable API_SECRET.

Please change the issue to: xDripAPS does not support token based authentication of oref0 0.5.x

@dramageek dramageek changed the title Not working... xDripAPS does not support token based authentication of oref0 0.5.x Jul 31, 2017
@kretep
Copy link

kretep commented Jun 8, 2019

This fixes the token-based authentication for me: d8217e2

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

No branches or pull requests

3 participants