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

feat(jwt) add endpoint to list all JWTs #3003

Merged
merged 2 commits into from
Nov 18, 2017
Merged

Conversation

hbagdi
Copy link
Member

@hbagdi hbagdi commented Nov 2, 2017

  • /jwts/ to paginate through all jwt credentials
  • /jwts/:jwt_key_or_id/consumer to retrieve the Consumer
    associated with a credential

Similar to #2998 #2955

Copy link
Member

@thibaultcha thibaultcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you! I think a better naming of the path parameter is the only missing piece of the puzzle. Requesting this only change and we should be good to go here!

BTW, we are very eager to release this as part of our upcoming 0.11.2 release! Thanks again

crud.paginated_set(self, dao_factory.jwt_secrets)
end
},
["/jwts/:credential_key_or_id/consumer"] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would jwt_key_or_id be a better name here? The JWT and it being a credential from the point of view of the Kong data model might not be obvious enough at first sight.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, will push it right away!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thibaultcha Line 23 in the same file. Should I change those to keep it consistent?

@thibaultcha thibaultcha added pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. and removed pr/status/please review labels Nov 18, 2017
* `/jwts/` to paginate through all JWT credentials
* `/jwts/:credential_key_or_id/consumer` to retrieve the Consumer
associated with a credential
@thibaultcha thibaultcha merged commit 28e56e6 into Kong:master Nov 18, 2017
@thibaultcha
Copy link
Member

Merged, thank you for your contribution!

@hbagdi hbagdi deleted the list-jwts branch November 18, 2017 02:28
hbagdi added a commit to hbagdi/getkong.org that referenced this pull request Nov 22, 2017
Two new endpoints have been added to the JWT plugin:

* `/jwts/` to paginate through all JWT credentials
* `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer
associated with a JWT

See Kong/kong#3003
thibaultcha pushed a commit to Kong/docs.konghq.com that referenced this pull request Nov 23, 2017
Two new endpoints have been added to the JWT plugin:

* `/jwts/` to paginate through all JWT credentials
* `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer
  associated with a JWT

See: Kong/kong#3003
From: #556

Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
thibaultcha pushed a commit to Kong/docs.konghq.com that referenced this pull request Nov 29, 2017
Two new endpoints have been added to the JWT plugin:

* `/jwts/` to paginate through all JWT credentials
* `/jwts/:jwt_key_or_id/consumer` to retrieve the Consumer
  associated with a JWT

See: Kong/kong#3003
From: #556

Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants