Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method jwks.get() returns None #12

Closed
pavlosymonov opened this issue Sep 17, 2024 · 4 comments
Closed

Method jwks.get() returns None #12

pavlosymonov opened this issue Sep 17, 2024 · 4 comments

Comments

@pavlosymonov
Copy link

I assume that there must be a JWKS return because currently, it returns None.
https://github.com/clerk/clerk-sdk-python/blob/28eb032e177349e45e4013e865d8471781fb9282/src/clerk_backend_api/jwks.py#L70C4-L70C19

@simplesagar
Copy link

simplesagar commented Sep 17, 2024

HI @pavlosymonov we're looking into this and will report back shortly. Thanks for the issue report !

@rwbayer
Copy link

rwbayer commented Sep 19, 2024

I am also experiencing this issue with the SDK

@2ynn
Copy link
Contributor

2ynn commented Oct 7, 2024

The /jwks endpoint returns None because no response schema is associated with the 200 response

Instead, one would expect a configuration such as:

 "/jwks":
    get:
      x-speakeasy-group: jwks
      x-speakeasy-name-override: get
      operationId: "GetJWKS"
      summary: "Retrieve the JSON Web Key Set of the instance"
      description: "Retrieve the JSON Web Key Set of the instance"
      tags:
        - "JWKS"
      responses:
        "200":
          description: "The JSON Web Key Set"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JWKS"

...

components:
  schemas:
    JWKS:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/JWK'
    JWK:
      type: object
      properties:
        use:
          type: string
          const: sig
        kty:
          type: string
          const: RSA
        kid:
          type: string
          description: Key ID
        alg:
          type: string
          const: RS256
        n:
          type: string
          description: Modulus
        e:
          type: string
          description: Exponent
          example: "AQAB"
      required:
        - use
        - kty
        - kid
        - alg
        - n
        - e

@speakeasybot
Copy link
Collaborator

Fix has been pushed and merged into main, thank you for reporting! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants