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
Closed

submitting http request returns html "Continue" page #3

pleepaul opened this issue Jul 26, 2018 · 6 comments

Comments

@pleepaul
Copy link

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
Copy link
Owner

BennyM commented Jul 27, 2018

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

@BennyM
Copy link
Owner

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
Copy link
Author

pleepaul commented Jul 27, 2018 via email

@BennyM
Copy link
Owner

BennyM commented Jul 28, 2018 via email

@pleepaul
Copy link
Author

pleepaul commented Jul 31, 2018 via email

@BennyM BennyM closed this as completed Aug 4, 2018
@mohibakhan
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants