Skip to content

Gitlab jwk verification failure #8

Open
@mestrade

Description

@mestrade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions