Keplerjs / Kepler

The open source geosocial network platform written in NodeJs
https://kepler.opengeo.tech
BSD 2-Clause "Simplified" License
176 stars 44 forks source link

Callback URL for Oauth #93

Open weidi opened 3 years ago

weidi commented 3 years ago

Hey guys, found your project and it seems it´s exaclty what i needed to start a project I have in mind. One thing i was unable to find the OAuth callback URL to configure authentication providers. Am i missing something from the documentation?

stefanocudini commented 3 years ago

hi in fact it is not something documented in the Kepler project because you should find documentation of this in MetorJs: https://docs.meteor.com/packages/oauth-encryption.html

anyway these are the back urls used in the official demo, you should i think just replace your domain image

stefanocudini commented 3 years ago

I advise you to make you own instance of kepler I to use the new official docker image: https://github.com/Keplerjs/Keplerjs-Docker

stefanocudini commented 3 years ago

@weidi if you think it can be better indicated in the documentation I ask you if you can give a small contribution of a few lines, the same documentation is under an open source license here: https://github.com/Keplerjs/docs/blob/master/docs/settings.md

so I can insert you among the contributors of project

weidi commented 3 years ago

I advise you to make you own instance of kepler I to use the new official docker image: https://github.com/Keplerjs/Keplerjs-Docker

Already using the new version, update worked flawless

weidi commented 3 years ago

@weidi if you think it can be better indicated in the documentation I ask you if you can give a small contribution of a few lines, the same documentation is under an open source license here: https://github.com/Keplerjs/docs/blob/master/docs/settings.md

so I can insert you among the contributors of project

I just tried to get google and github oauth to work and from what i understand it should be enough to configure the .env and populate ClientID and Secret but i keep receiving image I woudl expect to break things when using ServiceConfiguration or google-config-ui?

stefanocudini commented 3 years ago

you need to fil this fields: https://github.com/Keplerjs/Kepler/blob/75a0416c04d0a2bff6a790c095f4afc83802c691/private/settings.sample.json#L93

or for diable google oauth se to false: https://github.com/Keplerjs/Kepler/blob/75a0416c04d0a2bff6a790c095f4afc83802c691/packages/core/config/Accounts.js#L34

like this minimal kepler configuration without oauth services: https://github.com/Keplerjs/Kepler/blob/master/private/settings.light-ui.json#L164

weidi commented 3 years ago

This is what i did and it works from what i see as the environment variables inside the container are set correctly. image

stefanocudini commented 2 years ago

This is what i did and it works from what i see as the environment variables inside the container are set correctly. image

yes it's correct!

weidi commented 2 years ago

This is what i did and it works from what i see as the environment variables inside the container are set correctly. image

yes it's correct!

My comment was a bit misleading, i did these settings but they are not reflected in the UI, so no oAuth possible.

stefanocudini commented 2 years ago

@weidi unfortunately I noticed that the packages used for oauth are actually broken ... I think due to the changes of the Ouauth api of the third party services, fb, twitter etc

stefanocudini commented 2 years ago

@weidi if you are interested in being part of the keplerjs organization I can place you among the members. I see that you are a curious user to how it works, maybe this can be an opportunity to try to make some changes to the code