Coder Social home page Coder Social logo

Comments (3)

yurem avatar yurem commented on August 21, 2024 1

Fixed. Here is instruction how to deploy fix.

Now passport send to oxAuth endpoint signed JWT. After getting it script check JWT signature. Also in this update we remove one redundant step: /oxauth/auth/passport/passportpostlogin.htm -> /oxauth/postlogin Now passport sends data to /oxauth/postlogin directly.

from gluu-passport.

willow9886 avatar willow9886 commented on August 21, 2024

Which version of gluu are you testing with?

from gluu-passport.

SebastianTusk avatar SebastianTusk commented on August 21, 2024

I'm using version 3.1.3. I do not see any newer changes that might mitigate the issue.
The problem is, that the communication with gluu-passport is performed via the client browser. I have a test case where I skip any requests to gluu-passport. Instead I am doing the following requests:

  1. GET https://{{hostname}}/identity
    redirects to https://{{hostname}}/oxauth/auth/passport/passportlogin, inits session
  2. POST https://{{hostname}}/oxauth/auth/passport/passportpostlogin
    send the "result" of gluu-passport to oxauth, the data is encoded with base64, userid, email, name can be freely changed, accessToken is a random number
  3. POST https://{{hostname}}/oxauth/auth/passport/passportpostlogin
    send the loginForm data as passportpostlogin.xhtml does, use the same data as in request 2, "javax.faces.ViewState" can be retrieved from request 2

At no stage is anything about the passport authentication verified. The accessToken is never used. In my opinion the communication between gluu-passport and oxauth should not be handled via the client browser.

from gluu-passport.

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.