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

Users not able to authenticate #1004

Open
jeffdefacto opened this issue May 16, 2018 · 8 comments
Open

Users not able to authenticate #1004

jeffdefacto opened this issue May 16, 2018 · 8 comments

Comments

@jeffdefacto
Copy link

I've tested this on several different instances of OSMTM 2 and it appears that users can no longer successfully log in. When users try to grant access to their account, the TM throws an invalid token error. It seems to be an issue with the osm api, but I haven't heard of anything changing.

You can try it here http://tasks.openstreetmap.id/

@ethan-nelson
Copy link
Collaborator

Hi @jeffdefacto thanks for the report. If there was the possibility of getting access to the error logs on one of these instances, I may be able to debug this further. I unfortunately don't have a TM2 instance up and running at the moment as I've shifted my dev efforts to TM3.

@jeffdefacto
Copy link
Author

Hi @ethan-nelson thanks for taking a look. I've attached the error message associated with this. Let me know if you need more.

error_message.txt

@jeffdefacto
Copy link
Author

We've discovered the issue. The api url for USER_DETAILS_URL needs to be https now.

@adisadit
Copy link

Hi @jeffdefacto my local TM 2 also get this problem. Any user who want to log in seem get internal server error issue. Could you tell me in detail how to solve this problem? Thanks

@jeffdefacto
Copy link
Author

Hey @adissadis its an easy fix luckily.

open
osm-tasking-manager2/osmtm/views/osmauth.py

find this line
USER_DETAILS_URL = 'http://api.openstreetmap.org/api/0.6/user/details'

and replace it with
USER_DETAILS_URL = 'https://api.openstreetmap.org/api/0.6/user/details'

@ethan-nelson
Copy link
Collaborator

I suspected it would be related to that. Thanks for the follow up--I'll file a pull request to fix this!

@adisadit
Copy link

@jeffdefacto woow it really work. Thanks a lot for your hint to fix this problem.. 😄

@answerquest
Copy link

Oh my god, it was this?? Ok, does anyone know who's managing the India Tasking Manager instance? http://tasks.openstreetmap.in Same issue there, and no details for contacting.

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

4 participants