Coder Social home page Coder Social logo

Sign in with Facebook about django-unifi-portal HOT 9 CLOSED

bsab avatar bsab commented on May 29, 2024
Sign in with Facebook

from django-unifi-portal.

Comments (9)

JamesLodge avatar JamesLodge commented on May 29, 2024

I'm looking to use this for a client. I have everything setup and working.

I'm using Nginx to proxy the app.

One thing I'm struggling with are the Facebook API Oauth settings on the Facebook side.

With everything i believe to be correct, when i click the "Sign in with Facebook" i receive

Warning
You are not logged in: You are not logged in. Please log in and try again.

I assume I'm missing something, as Facebook is not prompting for credentials.

from django-unifi-portal.

bsab avatar bsab commented on May 29, 2024

Have you configured a Facebook application for your app?

from django-unifi-portal.

JamesLodge avatar JamesLodge commented on May 29, 2024

Yes and I've added the key and secret.

I think my App config in Facebook might not be correct.

I never get prompted for a username and password when clicking "SIGN IN WITH FACEBOOK"

from django-unifi-portal.

bsab avatar bsab commented on May 29, 2024

Try to open the domain "facebok.com" for a while, just for the signing operation. Unfortunately this is a typical problem that Unify team is working on.

from django-unifi-portal.

JamesLodge avatar JamesLodge commented on May 29, 2024

I assumed Facebook never talks to the the Unifi controller, but just to Django Unifi Portal?

I thought all the authentication happens on the Django side, then once authenticated, Django issues an API call to the unifi controller with the Mac address to allow access to the Internet.

Do you have Facebook authentication working?

from django-unifi-portal.

bsab avatar bsab commented on May 29, 2024

Yes, Facebook never talks to the controller but just to Django but the first authentication step( facebook login) happens on Facebook Side (for privacy reasons) then Facebook return a token to Django.

from django-unifi-portal.

JamesLodge avatar JamesLodge commented on May 29, 2024

Ok I have it working now. I had the wrong OAuth redirect URIs in the Facebook App settings

Correct URI is: /auth/complete/facebook

from django-unifi-portal.

bsab avatar bsab commented on May 29, 2024

Hello @JamesLodge, did you open the domain "facebook.com" (o relative IPs) to make it work ?

from django-unifi-portal.

JamesLodge avatar JamesLodge commented on May 29, 2024

@bsab on the unifi side I add facebook subnets on the Pre-Authorization Access

from django-unifi-portal.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.