How to implement Oauth2 without sending client_secret in WSO2 APIM

巧了我就是萌 提交于 2020-01-25 02:47:26

问题


I want to get access token without submiting Base64(client_id:client_secret) in the request.

I just want to submit the client_id and username and password (Password Grant Type) : public passoword grant type

It's called public scheme by IBM. Please quiclky skim through this likn. What I like is to never send the client_secret in an access token request. The image below illustrate it (still IBM).

The problem is that WSO2 APIM requests to obtain access token ALWAYS include the Base64(client_id:client_secret) parameter. I would like to be able to send only the following cURL to get an access token

I would like to be able to send the following cURL to get the access token


回答1:


1) Go to /carbon and list down the Service Providers.

2) Edit the relevant Service Provider corresponding to your Application.

3) Open Inbound Configuration > OAuth Configuraton.

4) Edit the OAoth app.

5) Tick Allow authentication without the client secret.

6) Try above curl.



来源:https://stackoverflow.com/questions/58818711/how-to-implement-oauth2-without-sending-client-secret-in-wso2-apim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!