Skip to content

Commit

Permalink
chore(constants) add note about CREDENTIAL_USERNAME deprecations
Browse files Browse the repository at this point in the history
### Summary

Right now some plugins that used to set `X-Credential-Username`
are now also setting `X-Credential-Identifier` with the same
value. We want to get rid of `X-Credential-Username` at some
point in favor for `X-Credential-Identifier`. This commit just
adds a TODO comment there.
  • Loading branch information
bungle committed Jan 31, 2020
1 parent 8c0364e commit f21de94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ return {
CONSUMER_ID = "X-Consumer-ID",
CONSUMER_CUSTOM_ID = "X-Consumer-Custom-ID",
CONSUMER_USERNAME = "X-Consumer-Username",
CREDENTIAL_USERNAME = "X-Credential-Username",
CREDENTIAL_USERNAME = "X-Credential-Username", -- TODO: deprecated, use CREDENTIAL_IDENTIFIER instead
CREDENTIAL_IDENTIFIER = "X-Credential-Identifier",
RATELIMIT_LIMIT = "X-RateLimit-Limit",
RATELIMIT_REMAINING = "X-RateLimit-Remaining",
Expand Down

0 comments on commit f21de94

Please sign in to comment.