mybuilder/kongfig

Use /<auth-type> endpoint to get all authentications

開放

#98 建立於 2017年11月10日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (78 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (373 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

To get all the keys present in Kong, the approach currently being used is:

for_each consumer {
 GET /consumers/:consumer_id_or_name/<auth-type>
}

Recently in Kong, a number of endpoints have been added to auth plugins to ease This will make the process of getting all the keys much more efficient!

To not break things with different Kong versions out there, internally we could hit GET /<auth-type>, if a 404 is returned then we fall back on the iteration approach, but if we get a 200 then, we're good.

Thoughts?

貢獻者指南