Skip to content

Commit c941d86

Browse files
committed
chore(constants) add note about CREDENTIAL_USERNAME deprecations
### 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.
1 parent ea45129 commit c941d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kong/constants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ return {
7575
CONSUMER_ID = "X-Consumer-ID",
7676
CONSUMER_CUSTOM_ID = "X-Consumer-Custom-ID",
7777
CONSUMER_USERNAME = "X-Consumer-Username",
78-
CREDENTIAL_USERNAME = "X-Credential-Username",
78+
CREDENTIAL_USERNAME = "X-Credential-Username", -- TODO: deprecated, use CREDENTIAL_IDENTIFIER instead
7979
CREDENTIAL_IDENTIFIER = "X-Credential-Identifier",
8080
RATELIMIT_LIMIT = "X-RateLimit-Limit",
8181
RATELIMIT_REMAINING = "X-RateLimit-Remaining",

0 commit comments

Comments
 (0)