このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
Using the plugin
You can follow the basic examples to enable your plugin using your preferred method. Or, follow this guide for some specific scenarios.
Prerequisites
Before using this plugin, set an authorization provider strategy in kong.conf
.
Enable automatic registration approval
You can enable auto_approve
so that application registration requests are
automatically approved.
The following example creates an instance of the plugin with auto_approve
enabled.
Replace <service>
with your service name or ID, and <my_service_display_name>
with the
display_name
of your service:
curl -X POST http://localhost:8001/services/<service>/plugins \
--data "name=application-registration" \
--data "config.display_name=<my_service_display_name>" \
--data "config.auto_approve=true
Or, you can update your current configuration with a PATCH
request.
Replace <plugin_id>
with the id
of your plugin.
curl -X PATCH http://localhost:8001/plugins/<plugin_id> \
--data "config.auto_approve=true"
Enable show issuer URL
Enable show_issuer
to expose the Issuer URL in the Service Details dialog.
Note: Exposing the Issuer URL is essential for the Authorization Code Flow configured for third-party identity providers.
Update your current configuration with a PATCH
request. Replace <plugin_id>
with the id
of your plugin.
curl -X PATCH http://localhost:8001/plugins/<plugin_id> \
--data "config.show_issuer=true"