Giter Site home page Giter Site logo

Comments (7)

nirav3650 avatar nirav3650 commented on September 16, 2024

I am getting django_keycloak.auth.bacjends dose not have define a BaseKeycloakMiddleware attribute/class

from django-keycloak.

srinathganesh1 avatar srinathganesh1 commented on September 16, 2024

from django-keycloak.

srinathganesh1 avatar srinathganesh1 commented on September 16, 2024

Hi Shrinath,
I am trying to use django_keycloak but I am not able to authenticate the users.
I followed the tutorial till initial setup, can you please help me with the initial setup of the project
Hi nirav,

I would not be ready to mix up others issues within this issue post,
if you could start a different issue/thread with your
configuration files, then i could see how i could help

from django-keycloak.

srinathganesh1 avatar srinathganesh1 commented on September 16, 2024

Why does the plugin not use preferred_username that is being returned by Keycloak?

Screenshot from 2020-04-02 01-53-34

from django-keycloak.

nirav3650 avatar nirav3650 commented on September 16, 2024

I get user id of the authenticated keycloak user in Django instead of username when I use request.user.username

Does preferred username give us the username of the user specified in keycloak of that user?

from django-keycloak.

srinathganesh1 avatar srinathganesh1 commented on September 16, 2024

I get user id of the authenticated keycloak user in Django instead of username when I use request.user.username

Does preferred username give us the username of the user specified in keycloak of that user?

prefered_username of oauth does return username, but this plugin does not seem to be reading it

from django-keycloak.

srinathganesh1 avatar srinathganesh1 commented on September 16, 2024

Why does the plugin not use preferred_username that is being returned by Keycloak?

Screenshot from 2020-04-02 01-53-34

Update:
I locally changed it to preferred_username and did python3 setup.py install and logged in. Things seems to work fine and keycloak Username is getting populated to user.username

Still awaiting more testing, but basic run looks good

from django-keycloak.

Related Issues (20)

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.