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

Bugfix consumer rsa public key must be nullable #153

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

betonetotbo
Copy link

I need to create a kong_consumer_jwt_auth without rsa_public_key, only using a secret. With the currently implementation isn't possible to do that (this is a blocker bug).

According to the kong documentation https://docs.konghq.com/hub/kong-inc/jwt/#create-a-jwt-credential the rsa_public_key is optional.

This PR fix it, assuming the kong optional attributes:

  • key
  • algorithm
  • secret
  • rsa_public_key

The unit test TestAccJWTAuth was adapted to test the defaults for them.

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

Successfully merging this pull request may close these issues.

2 participants