Git Product home page Git Product logo

oidc's People

Contributors

eau-u4f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oidc's Issues

proper OpenID connect Microsoft support

Because of all the tenants and the various hacks of microsoft, OpenID connect needs some tweaks as to match proper issuers, reported by @mestrade on implementing oidc with Azure validation errors ends up with this:

invalid iss: https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0 vs issuer: https://login.microsoftonline.com/{tenantid}/v2.0

also ID tokens claims includes microsoft specific fields : tid which can be used, check @mestrade PR #2 for details of the problem.

References:

Gitlab jwk verification failure

In:

/* // there is no alg...

The code using "alg" in the jwk parsing is disabled. The alg is determined with the len of the "n" modulus found in the jwk.

Using the modulus len with Google/Microsoft/Github oauth/oidc endpoints is working well.

Gitlab is actually providing "alg" as "RS256" but the provided "n" modulus len is 512, which cause rsa.Verify to fail.
By using the "alg" value, the verification is done correctly.

RSA private key representation
gitlab keys from oidc configuration url

Key commitment / Oracle?

We are using AEAD inside this library, should we implement a key commitment scheme?
keys are pseudo-random (KDF, so I lean toward a KISS: no), the validation endpoint might act as an oracle in a potential key partionning attack against the cookie, let's verify and make sure it does not happen.
Key commitment could just remove that risk.

References:

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.