Git Product home page Git Product logo

Comments (4)

awick avatar awick commented on June 12, 2024

The line numbers don't seem to match up, has auth.js been modified?
Unfortunately this is a works for me, so any other info you can share? Which OIDC provider are you using? It looks like the req.body is missing.

from arkime.

mcgillowen avatar mcgillowen commented on June 12, 2024

Sorry, just noticed that the log output was from v5.0.1, I tried again this time with v5.1.0 and the line numbers match up now

Wed, 01 May 2024 13:04:11 GMT - GET / 302 0 bytes 9.663 ms
/opt/arkime/common/auth.js:783
          if (req.body.ogurl) {
                       ^

TypeError: Cannot read properties of undefined (reading 'ogurl')
    at /opt/arkime/common/auth.js:783:24
    at complete (/opt/arkime/node_modules/passport/lib/middleware/authenticate.js:280:13)
    at /opt/arkime/node_modules/passport/lib/middleware/authenticate.js:287:15
    at pass (/opt/arkime/node_modules/passport/lib/authenticator.js:446:14)
    at Authenticator.transformAuthInfo (/opt/arkime/node_modules/passport/lib/authenticator.js:468:5)
    at /opt/arkime/node_modules/passport/lib/middleware/authenticate.js:284:22
    at /opt/arkime/node_modules/passport/lib/http/request.js:41:7
    at /opt/arkime/node_modules/passport/lib/sessionmanager.js:51:9
    at /opt/arkime/common/auth.js:1146:7
    at onBody (/opt/arkime/node_modules/@elastic/elasticsearch/lib/Transport.js:320:9)

Node.js v18.20.1

from arkime.

mcgillowen avatar mcgillowen commented on June 12, 2024

I'm using Keycloak and the authRedirectURIs is set to https://context.mcgillowen.local/auth/login/callback

from arkime.

awick avatar awick commented on June 12, 2024

Ok, I'll try and reproduce, for now you could change it to if (req.body?.ogurl) {

from arkime.

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.