dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
679 stars 189 forks source link

explain how to setup login, user creation #163

Open nevion opened 5 years ago

nevion commented 5 years ago

I have the local astrometry.net server running, based on the test config. One thing I'm wondering though is how to support creating a login or some tools, like sequence generator pro, getting an api key on the fly.

I'm trying to do this such that I'm 100% local , no internet.

So far I've used the django shell and created User and profile configs and used that as a way to either extract or set the api keys. I see alot of authentication is dealt with via the social authenticators but wasn't sure how this is handled for local stuff. The login link on the astrometry.net takes me to a page with no providers listed so it doesn't look like I can do anything.

dstndstn commented 5 years ago

On nova.astrometry.net, we only use Google and other 'social' logins -- there is no purely-local login option.

If you're using the API, the API key is enough -- you don't need to log in.

To support local logins instead of the social ones, you'd need to look at that part of the Django authentication manual. It has been long enough since I wrote that that I have no memory of how it works. I think there is a local-password option, but I'm not sure where in the stack it fits in. I assume it would show up as one of the 'social' options.

On Sun, Jun 23, 2019 at 1:24 AM Jason Newton notifications@github.com wrote:

I have the local astrometry.net server running, based on the test config. One thing I'm wondering though is how to support creating a login or some tools, like sequence generator pro, getting an api key on the fly.

I'm trying to do this such that I'm 100% local , no internet.

So far I've used the django shell and created User and profile configs and used that as a way to either extract or set the api keys. I see alot of authentication is dealt with via the social authenticators but wasn't sure how this is handled for local stuff. The login link on the astrometry.net takes me to a page with no providers listed so it doesn't look like I can do anything.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/163?email_source=notifications&email_token=AAIEH7JZNKBMUXVE7HDPFYDP34CHNA5CNFSM4H2YEBJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3D746A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIEH7NS4T7I32JSAAODD5DP34CHNANCNFSM4H2YEBJA .