Web SSO SAML Assertion登录到saleforce.com [英] Web SSO SAML Assertion login to saleforce.com

查看:289
本文介绍了Web SSO SAML Assertion登录到saleforce.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有MVC 4应用程序,因为我们从saleforce.com接收Auth令牌,使用以下代码使用他们的API



requestData.Append(grant_type = password& );

requestData.Append(client_id =+ ConfigurationManager.AppSettings [SfdcClientId] +&);

requestData.Append(client_secret = + ConfigurationManager.AppSettings [SfdcClientSecret] +&);

requestData.Append(username =+ login.Email +&);

requestData .Append(password =+ login.Password);

到目前为止一切正常工作



现在我们使用Siteminder实现SSO这将完成所有身份验证过程并在成功验证时返回用户ID



所以现在我们只有用户ID,并希望使用saml断言来自Saleforce.com的访问令牌



我们根据他们的文档形成Saml请求并将其发布到saleforce.com https://developer.salesforce.com/page/Digging_ Deeper_into_OAuth_2.0_on_Force.com但是它给出了invalid_Assertion错误我们试图找出但仍然没有得到任何解决方案



知道任何人都必须这样做请协助我

We have MVC 4 application from that we are receiving Auth token from saleforce.com to use their API using following code

requestData.Append("grant_type=password&");
requestData.Append("client_id=" + ConfigurationManager.AppSettings["SfdcClientId"] + "&");
requestData.Append("client_secret=" + ConfigurationManager.AppSettings["SfdcClientSecret"] + "&");
requestData.Append("username=" + login.Email + "&");
requestData.Append("password=" + login.Password);
Everything is working fine so far

Now we are implementing SSO using Siteminder which will do all authentication process and return user id on successful Authentication

So now we have only User ID with us and want Access token from Saleforce.com using saml assertion

We form Saml request and posting it to saleforce.com as per their documentation https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com but its giving invalid_Assertion error we try to figure out but still not get any solution to this

Does any one know have to do this please assist me

推荐答案

这篇关于Web SSO SAML Assertion登录到saleforce.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆