简体   繁体   English

如何使用 OAuth2SAMLBearerAssertion 将 Neo SCP 中的目的地设置为 Cloud Foundry 服务?

[英]How to setup destination in Neo SCP to Cloud Foundry service using OAuth2SAMLBearerAssertion?

I want to consume a CF service in my Neo SCP, using a destination with OAuthSAMLBearerAssertion.我想在我的 Neo SCP 中使用 CF 服务,使用带有 OAuthSAMLBearerAssertion 的目的地。

But every time I check for the service in WebIDE, I get error 500.但是每次我在 WebIDE 中检查服务时,都会收到错误 500。

Here is my destination:这是我的目的地:

#clientKey= Client-ID of your OAuth client
--> you will get the clientid from environment variables in CF: 
--> xsuaa --> credentials --> clientid
#tokenServicePassword=  Client secret of your OAuth client
--> you will get the clientsecret from environment variables in CF: 
--> xsuaa --> credentials --> clientsecret
#Tue May 21 07:02:37 UTC 2019
Description=CF HANA OData Service
Type=HTTP
TrustAll=true
audience=xyz.aws-live-eu10 (=EntityID out of the SAML metadata)
Authentication=OAuth2SAMLBearerAssertion
WebIDEUsage=odata_gen
Name=cf_xyz_odata_auth
WebIDEEnabled=true
tokenServiceURL=https\://xyz.authentication.eu10.hana.ondemand.com/oauth/token/alias/xyz.aws-live-eu10 (= Token URL out of the SAML metadata)
URL=https\://backend.cfapps.eu10.hana.ondemand.com
ProxyType=Internet
tokenServiceURLType=Dedicated
tokenServiceUser= same as client key
WebIDESystem=CF

Any ideas?有任何想法吗?

Fixed it:修复:

Problem was that I did had to give the Neo-Account as "allowed provider" in the oauth2-configuration in the xs-security.json and delete/re-start the xsuaa service instance.问题是我确实不得不在 xs-security.json 的 oauth2-configuration 中将 Neo-Account 作为“允许的提供者”并删除/重新启动 xsuaa 服务实例。

"oauth2-configuration": { “oauth2 配置”:{

    "token-validity": 900,

    "refresh-token-validity": 1800,

    "autoapprove": "true",

    "allowedproviders": ["..."],

    "grant-types": ["refresh_token", "urn:ietf:params:oauth:grant-type:saml2-bearer", "password", "authorization_code"]


}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在具有 oAuth2SAMLBearerAssertion 身份验证的云代工厂环境中使用 S4Hana SDK 执行 odata 调用 - Unable to execute odata calls using S4Hana SDK in cloud foundry environment with oAuth2SAMLBearerAssertion authentication 如何在Cloud Foundry中为Java应用程序添加多个目的地? - How to add multiple destinations for a java application in cloud foundry? 如何为SCP应用程序配置应用程序日志记录服务 - How to configure Application Logging Service for SCP application 如何在Cloud Foundry的门户网站中访问已部署的Java应用程序? - How to access the deployed Java apps in portal site in Cloud foundry? 在Cloud Foundry上使用SAPOfflineTokenServices时JWT令牌验证错误 - Error in JWT token validation when using SAPOfflineTokenServices on Cloud Foundry 适用于Javascript和目标服务的S / 4HANA Cloud SDK - S/4HANA Cloud SDK for Javascript and destination service 在 SCP Neo 中使用 S4 SDK 部署我的项目导致错误 - Deploy my project with S4 SDK in SCP Neo lead to error SAP Cloud Foundry中的远程调试 - Remote Debugging in SAP Cloud Foundry 在Cloud Foundry环境中使用S4 SDK执行ODATA V2调用时的DestinationAccessException错误 - DestinationAccessException Error in executing ODATA V2 calls using S4 SDK in cloud foundry environment 无法使用最新的s4sdk启动SCP Neo构建的webapp - unable to start webapp on SCP Neo build with latest s4sdk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM