SuLab / WikiGenomesBase

A configurable codebase for launching organism specific WikiGenomes spinoff applications (e.g. ChlamBase.org) This is a web application framework for creating a model organism database leveraging the taxonomic, genetic and functional data that has been loaded to Wikidata.org by the Gene Wiki Project.
https://chlambase.org/
MIT License
7 stars 4 forks source link

oauth authentication not working #44

Closed andrewsu closed 6 years ago

andrewsu commented 6 years ago

No response to clicking "Authorize to edit" button in the upper right. Error message from console:

2018-04-03_17-14-35

djow2019 commented 6 years ago

I think the oauth token was overwritten back to empty the last time we pulled from the repo

andrewsu commented 6 years ago

@putmantime I think Derek can help debug this one, but I'm not finding a link to a page that describes wikidata's oauth tutorial. Can you send a pointer please?

djow2019 commented 6 years ago

We need to configure the callbackURL to use a chlambase.org domain name. The application we use is the wikigenomes one https://meta.wikimedia.org/w/index.php?title=Special:OAuthListConsumers/view/c14cf96fc38ab0ff34352d0996768d9f&name=wikigenomes.org&publisher=&stage=1 which only allows wikigenomes.org callback urls.

djow2019 commented 6 years ago

updated the consumer key and secret to use chlambase.org application. Currently in proposed status, but the callbackurl is working now and at least redirects you to the login screen. Only the developer has access to login right now, but will work like magic once its accepted

https://meta.wikimedia.org/w/index.php?title=Special:OAuthListConsumers/view/c38063969dd943af4b468be0718b4514&name=Chlambase.org&publisher=&stage=-1

djow2019 commented 6 years ago

Gonna bump @putmantime
Consumer Key: c38063969dd943af4b468be0718b4514 More information: https://meta.wikimedia.org/w/index.php?title=Special:OAuthListConsumers/view/c38063969dd943af4b468be0718b4514&name=Chlambase.org&publisher=&stage=-1

djow2019 commented 6 years ago

After @putmantime contacted Epoch Fail on his wiki page, we got the chlambase application approved and now oauth works for all users.