nic-6443 commented on code in PR #13616:
URL: https://github.com/apache/apisix/pull/13616#discussion_r3619806061


##########
apisix/plugins/openid-connect.lua:
##########
@@ -910,6 +926,12 @@ function _M.rewrite(plugin_conf, ctx)
             if refresh_token and conf.set_refresh_token_header then
                 core.request.set_header(ctx, "X-Refresh-Token", refresh_token)
             end
+
+            -- Add X-Enc-ID-Token header, maybe.
+            local enc_id_token = session:get("enc_id_token")
+            if enc_id_token and conf.set_enc_id_token_header then
+                core.request.set_header(ctx, "X-Enc-ID-Token", enc_id_token)

Review Comment:
   change `set_enc_id_token_header`  to `set_raw_id_token_header` too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to