Coder Social home page Coder Social logo

Verify User Question about node-openid-client HOT 4 CLOSED

panva avatar panva commented on May 18, 2024
Verify User Question

from node-openid-client.

Comments (4)

panva avatar panva commented on May 18, 2024 1

@douglasrlee I see, well, seeing how http://openid.net/specs/openid-connect-discovery-1_0.html says userinfo_endpoint is RECOMMENDED, and an OP can exist that only supports response_type=id_token i'll sort this out.

Until then just put a value in and change your verify arity so that it's not called.

from node-openid-client.

panva avatar panva commented on May 18, 2024

Hello @douglasrlee, similar to #18, change your verify fn signature to (tokenset, done) and no userinfo will be called. I thought this fn arity specific returns are common enough in passport.

Can you suggest how to modify the documentation so that it's clear you can do both of the below?

  • tokenset, done
  • tokenset, userinfo, done

from node-openid-client.

douglasrlee avatar douglasrlee commented on May 18, 2024

@panva that makes sense, but it is the fact that I still have to provide the user info endpoint even if I don't want the user info part in the function signature.

const MANDATORY = ['authorization_endpoint', 'jwks_uri', 'token_endpoint', 'userinfo_endpoint'];

from node-openid-client.

panva avatar panva commented on May 18, 2024

fixed in v1.6.2

from node-openid-client.

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.