客户凭证流程正是您所需要的。https://www.keycloak.org/docs/latest/authorization_services/#_service_protection_permission_api_papi
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'grant_type=client_credentials&client_id=${client_id}&client_secret=${client_secret}' \
"http://localhost:8080/auth/realms/${realm_name}/protocol/openid-connect/token"
Run Code Online (Sandbox Code Playgroud)
这来自 keycloak 文档 ( https://www.keycloak.org/docs/latest/authorization_services/#_service_protection_permission_api_papi )。
另请检查: https: //auth0.com/docs/flows/concepts/client-credentials
| 归档时间: |
|
| 查看次数: |
4949 次 |
| 最近记录: |