我尝试了几个openid连接端点,但它们似乎都没有工作。例如,我尝试获取授权码:
https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize
对于令牌:
https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/tokenservice
我也试过这些,没有成功:
https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice
https://api.sandbox.paypal.com/v1/identity/openidconnect/authorize
答案 0 :(得分:0)
请参考 https://developer.paypal.com/docs/rest/api/identity/?mark=openid 例如:
curl -v --insecure https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice -H "Accept: application/json" -H "Accept-Language: en_US" -d "client_id=<Client-Id>" -d "client_secret=<Secret>" -d "grant_type=authorization_code" -d "code=<Authorization-Code>"
答案 1 :(得分:-1)
查看documentation,沙箱的授权URI是:
https://www.sandbox.paypal.com/signin/authorize