在我的服务代理的目录端点中,我定义了dashboard_client
如下。
"dashboard_client":{
"id":"test-client-id",
"secret":"test-client-secret",
"redirect_uri":"https://dashboard.cf.myorg.com"
}
在我的服务仪表板应用程序中,我使用上面定义的客户端 ID 来启动 OAuth 授权代码授予流程,如CF Dashboard SSO 文档中所述。
如果客户端请求最小authorization_endpoint
范围和. 例如token_endpoint
cloud_controller_service_permissions.read
openid
https://login.cf.myorg.com/oauth/authorize?
response_type=code&
client_id=test-client-id&
scope=openid%20cloud_controller_service_permissions.read&
redirect_uri=https://dashboard.cf.myorg.com/auth
但是,如果客户端请求其他范围cloud_controller.read
和/或cloud_controller.write
(在仪表板 SSO 文档中也提到),则authorization_endpoint
重定向到仪表板并显示错误cloud_controller.read is invalid. Please use a valid scope name in the request
。
CF 版本 2.80.0。
知道出了什么问题吗?