SAP SuccessFactors 作为身份提供者来保护 .Net Core 应用程序

问题描述

我想使用 Success Factors 作为身份提供者来保护 .Net Core 应用程序。 下面是我的应用程序登录页面。

enter image description here

当我点击 Login with Success Factors 按钮时,它应该会将我重定向到 SAP Success Factors 页面。 但后来我收到以下错误:

enter image description here

以下是我在应用设置文件中的配置

 "SFLoginDefaults": {
      "ClientId": "991af204-8148-456c-a652-31d00eb16b65","ClientSecret": "mhshhot@7aJk6W=[D8:aFPido4mNmiRt","AuthorizationEndpoint": "https://xxx.accounts.ondemand.com/oauth2/authorize","TokenEndpoint": "https://xxx.accounts.ondemand.com/oauth2/token","UserInformationEndpoint": "https://xxx.accounts.ondemand.com/userinfo","CallbackPath": "/signinesssf","SaveTokens": true,"RedirectUri": "http://localhost:xxx/signinesssf"
  }

抛出错误的页面链接是: https://xxx.accounts.ondemand.com/oauth2/authorize?client_id=991af204-8148-456c-a652-31d00eb16b65&scope=&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3Axxx%2Fsigninesssf&state=CfDJ8PnTCdMxoWZDtjmkpfjZlGdfQr-EEma4vvxrCbipBxT9OhpD5jlsS-C8AFr2Kz7Ol3Z-WURI6lLd6p0c-GusmCA_qlAE-HO3yMayhEihir5ZvyAoewgsSIMZYEZSZXj_qsogqiBshHh0jx2ij9saTDwRSX_E8Zpvj0jjoiw9v96B-375HspDxswPJXsvoYIA1zx6d-PaBN7IBMDR2b5-7ysrX8agkaiMgh6iuIDTZAZkTCO8zxhbhiB9AyRbcYeBor3Dq41bPJwZz5Ozepw7DRJQp_MNchyZSeD8JlE8xKy4

这就是我所得到的,想知道是否有更好的方法重定向到 SAP Success Factors 登录页面。我使用的是 OAuth2 而不是 SAML2P

谢谢,

索马德

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...