Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to complete authentication with Salesforce #19

Open
d-saravanan opened this issue Dec 26, 2016 · 1 comment
Open

Not able to complete authentication with Salesforce #19

d-saravanan opened this issue Dec 26, 2016 · 1 comment

Comments

@d-saravanan
Copy link

Hi,
I am not able to get back the details from the SalesForce Api. Once logged in successfully, i still get redirected to the login page infinitely.

The following are the configurations done in Salesforce

Enabled the SAML SSO
Created the service provider and set the localhost urls for those
Downloaded the Self-signed certificate from Salesforce and added that the the project source so that it will be used to sign the requests
Downloaded the metadata from salesforce and then set that in the metadata folder so that it will be used.
After login, the following method always returns null

AuthenticationTicket ticket = await AuthenticateAsync();

so there is an infinite loop of redirections

I have also verified the steps as given in the following link http://www.jitendrazaa.com/blog/salesforce/step-by-step-guide-to-setup-federated-authentication-saml-based-sso-in-salesforce/

Can you please help me

@d-saravanan
Copy link
Author

I find that in the OwinRequestExtensions.cs file, the following method

public static Task ReadFormAsync(this IOwinRequest value)
has the logic to seek from the stream and that the stream does not allow the seek operation.
value.Body.Seek

Further more, when the same response is url decoded and base64 decoded, there are errors. I am not sure if the implementation dates very long back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant