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

Add instructions for social login #11

Closed
maxking opened this issue Apr 21, 2017 · 14 comments
Closed

Add instructions for social login #11

maxking opened this issue Apr 21, 2017 · 14 comments

Comments

@maxking
Copy link
Owner

maxking commented Apr 21, 2017

https://django-allauth.readthedocs.io/en/latest/installation.html#post-installation

Django allauth requires some setup before it starts working. It needs to be setup using the django's admin console. The process isn't very difficult but needs to be documented somewhere so that people don't expect it to work out of the box.

@ghost
Copy link

ghost commented Jun 11, 2017

Yes, it would be very useful to have this documented.
After docker-compose up, If I open /admin/ page what user credentials should I use?
Has django createsuperuser already run on this stage?

@ghost
Copy link

ghost commented Jun 11, 2017

The answer seems 'No'. Here is a command for creation of superuser after containers are up:

docker-compose exec -T mailman-web bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@site.com', 'password')\" | python manage.py shell"

@maxking
Copy link
Owner Author

maxking commented Jun 11, 2017

@ulrith you can create one like this too:

docker-compose exec -T mailman-web python manage.py createsuperuser

This command is going to be interactive but will work.

I will add it to documentation. Thanks!

@ghost
Copy link

ghost commented Jun 12, 2017

Yes, thanks, and my command listed above is non-interactive and it works too :)

@maxking
Copy link
Owner Author

maxking commented Jun 12, 2017

@ulrith Also, getting social logins to work is a little tricky if you are doing it for the first time, let me know and I can help you get started.

@ghost
Copy link

ghost commented Jun 25, 2017

@maxking I'd like to accept your offer to configure social logins now :)

@maxking
Copy link
Owner Author

maxking commented Jun 26, 2017

@ulrith Sure! We should move to IRC or email?

@ghost
Copy link

ghost commented Jun 29, 2017

@maxking Yes thanks! I've sent an email to you

@almereyda
Copy link

This would also include instructions about how to disable social login via a custom settings_local.py.

@maxking
Copy link
Owner Author

maxking commented Jul 10, 2017

@almereyda It should not be very difficult to just remove all the social logins. You just change the INSTALLED_APPS to remove all the social logins.

There potentially could be an environment variable to disable it if enough people are interested to get rid of social logins by default, but for now, changing the INSTALLED_APPS in django's settings_local.py would be what I would suggest.

@Dragnell87
Copy link

@maxking Hi, i tried what you suggested but it didn't not work, there is any other way to disable the external sign in from social networks in HyperKitty ?

@Dragnell87
Copy link

OK i found the solution, is as you said but, you cannot delete or comment allauth.socialaccount otherwise the migration at start up will fail.

@maxking
Copy link
Owner Author

maxking commented Aug 4, 2017

@Dragnell87 Yeah that would make sense because that is the only app which uses database.

Although, you might be able to get rid of that if you use a fresh copy of database. Since migrations are expected to be generated by the apps, the migrate command would be expected to fail in case a table disappers without a migration.

python mange.py makemigrations && python manage.py migrate might work, but would have to be done on each restart.

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

This issue has not been updated for more than 1year

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants