Skip to content

[v5] PrivateKeyJwtCredentials should accept credential objects #1245

@floridemai

Description

@floridemai

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

with the previous version (v4) of auth0 sdk we were able to creat a client by passing

    client_authentication_methods: {
      private_key_jwt: {
        credentials: [
          {
            credential_type: 'public_key',
            name: 'publick_key_name',
            pem: your_pem_var,
            alg: 'RS256',
            parse_expiry_from_cert: false,
            expires_at: expires_at_var,
          },
        ],
      },
    },

With v5 credentials is only allowed "A list of unique and previously created credential IDs enabled on the client for Private Key JWT authentication." but the above code still works (with any) and the client is created with the correct private key jwt credential

Reproduction

auth0.clients.create with typescript and setting private key jwt with credentials

Additional context

No response

node-auth0 version

5.0.0

Node.js version

22.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions