I want to use Facebook Authorization for Django Admin. Only the app developer (me) should be able to login. Is it possible? easily? and How?
Actually, I am even thinking to provide some special graph actions inside it. So, I should be able to play with the admin easily!
You could use django social auth as an authentication means. Basically, it allows you to authenticate users as django
User‘s. You are then in “Standard Djangoland”, where users that have theis_staffflag can access the admin, and those that don’t can’t.You can therefore give the Facebook user that Social Auth created for you the appropriate privileges (that is
is_staff = True) so that you can access the adminThere’s a bit of a chicken & egg problem here, but you could use the
manage.pyconsole to make your user an admin user / superuser.