nokia / kong-oidc

OIDC plugin for Kong
Apache License 2.0
455 stars 320 forks source link

add X-Credential-Identifier #182

Open davinwang opened 3 years ago

davinwang commented 3 years ago

Start from Kong 2.1, there is a new http header indicate the authorized customer, according to https://docs.konghq.com/hub/kong-inc/basic-auth/ , https://docs.konghq.com/hub/kong-inc/ldap-auth/ and https://docs.konghq.com/hub/kong-inc/key-auth/. Therefore I think there should be X-Credential-Identifier in order to align with other auth plugins. Besides, X-UserInfo and X-Credential-Identifier should be cleared before authentication process, however I could not find the proper place to do this. Hope you guru can complete this PR :)