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

submitting http request returns html "Continue" page #3

Closed
pleepaul opened this issue Jul 26, 2018 · 6 comments

Comments

@pleepaul
Copy link

@pleepaul pleepaul commented Jul 26, 2018

Hi,

I have the exact issue of .net core not accepting UserPasswordCredential() and when I follow your code, I get a html response instead of json. My username and password should be fine since it works when I use it in the AppOwnsData example. Here is what I get when running the program (it actually fails then the program tries to parse the html as JSON) . I get the same thing when I try to run this request in postman.

<title>Continue</title>

Script is disabled. Click Submit to continue

<script language="javascript">window.setTimeout('document.forms[0].submit()', 0);</script>

Thank you for your help!

Regards,
Paul

@BennyM

This comment has been minimized.

Copy link
Owner

@BennyM BennyM commented Jul 27, 2018

Ok, thanks for the additional info. I'll look into it.

@BennyM

This comment has been minimized.

Copy link
Owner

@BennyM BennyM commented Jul 27, 2018

Hi

I just tested with a blank console application and it just works. Try logging in with the account via a browser and see if you get any errors / warnings.

I have not yet ported the most recent SDK to netstandard so perhaps there are some changes in it. Are you sure you are using "application/x-www-form-urlencoded" as per the sample code?

@pleepaul

This comment has been minimized.

Copy link
Author

@pleepaul pleepaul commented Jul 27, 2018

@BennyM

This comment has been minimized.

Copy link
Owner

@BennyM BennyM commented Jul 28, 2018

@pleepaul

This comment has been minimized.

Copy link
Author

@pleepaul pleepaul commented Jul 31, 2018

@BennyM BennyM closed this Aug 4, 2018
@mohibakhan

This comment has been minimized.

Copy link

@mohibakhan mohibakhan commented Oct 10, 2018

I'm also trying the same but I'm getting invaild_grant error, although the username and password I'm using are correct.

git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.